Tutoriale TackenMt2
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[New]Implementare Euro pe server

Go down

[New]Implementare Euro pe server Empty [New]Implementare Euro pe server

Post  ~RedFoxOne~ Sat Feb 05, 2011 10:11 pm

O mica demonstratie:
[New]Implementare Euro pe server Zimux2

Puneti icons in icon
In item_list puneti urmatorul cod:
Code:
100001   ETC   icon/item/100001.tga
100002   ETC   icon/item/100002.tga
100003   ETC   icon/item/100003.tga
100004   ETC   icon/item/100004.tga
100005   ETC   icon/item/100005.tga
100006   ETC   icon/item/100006.tga
100007   ETC   icon/item/100007.tga

In itemdesc puneti urmatorul cod:
Code:
100001   5 Euro   Cliccandoci col destro ti ridarà indietro i tuoi 5.000.000
100002   10 Cliccandoci col destro ti ridarà indietro i tuoi 10.000.000 yang
100003   20 Cliccandoci col destro ti ridarà indietro i tuoi 20.000.000 yang
100004   50 Cliccandoci col destro ti ridarà indietro i tuoi 50.000.000 yang
100005   100 Euro   Cliccandoci col destro ti ridarà indietro i tuoi 100.000.000 yang
100006   200 Euro   Cliccandoci col destro ti ridarà indietro i tuoi 200.000.000 yang
100007   500 Euro   Cliccandoci col destro ti ridarà indietro i tuoi 500.000.000 yang

In item_proto din client puneti urmatorul cod:
Code:
<Item vnum="100001" hashName="5 Euro" name="5 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100002" hashName="10 Euro" name="10 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100003" hashName="20 Euro" name="20 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100004" hashName="50 Euro" name="50 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100005" hashName="100 Euro" name="100 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100006" hashName="200 Euro" name="200 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
<Item vnum="100007" hashName="500 Euro" name="500 Euro" type="18" subtype="0" weight="0" size="1" antiflag="0" flag="20"wearflag="0" immuneflag="0"gold="0" buy_price="0" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0"applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0"applyvalue2="0" value0=" " value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0"socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
Item_proto trebuie despachetat
o sa pun si un tutorial de despachetare si impachetare item_proto,dar nu acum

Intrati in Navicat Player-->item_proto-->CTRL+Q-->CTRL+N si puneti

Code:
INSERT INTO `item_proto` VALUES (100001, '5 Euro ', '5 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100002, '10 Euro ', '10 Euro ', 18 , 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100003, '20 Euro ', '20 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100004, '50 Euro ', '50 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100005, '100 Euro ', '100 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100006, '200 Euro ', '200 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);
INSERT INTO `item_proto` VALUES (100007, '500 Euro ', '500 Euro ', 18, 0, 0, 1, 0, 20, 0, '' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0, 0, 0,0,0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, 0, 0, 0);

Intrati in FileZilla sau WinSCP in usr/rain(sau game)/channel/share_data/locale/hongkong/quest/object

NPC Bank By NexT

Code:
say_title ( "Aiuto Banca by NexT" )
say ( "Vuoi scambiare i tuoi yang" )
say ( "con delle banconote?" )
local opzioni = select ( "Si" , "No Grazie" )
if opzioni == 1 then
say_title ( "Aiuto Banca by NexT" )
say ( "Ora ti elenchero le banconote che ho:" )
say ( "5 Euro equivale a 5.000.000" )
say ( "10 Euro equivale a 10.000.000" )
say ( "20 Euro equivale a 20.000.000" )
say ( "50 Euro equivale a 50.000.000" )
say ( "100 Euro equivale a 100.000.000" )
say ( "200 Euro equivale a 200.000.000" )
say ( "500 Euro equivale a 500.000.000" )
say_reward ( "Allora vuoi scambiare i tuoi soldi?" )
local opzioni1 = select ( "Certo" , "No torno la prossima volta" )
if opzioni1 == 1 then
say_title ( "Aiuto Banca" )
say ( "Scegli La Banconota..." )
local opzioni2 = select ( "5 Euro (5kk)" , "10 Euro (10kk)" , "20 Euro (20kk)" , "50 Euro (50kk)" , "100 Euro (100kk)" , "200 Euro (200kk)" , "500 Euro (500kk)" , "chiudi" )
if opzioni2 == 1 then
if pc . gold >= 5000000 then
pc . changegold ( -5000000 )
pc . give_item2 ( "100001" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 2 then
if pc . gold >= 10000000 then
pc . changegold ( -10000000 )
pc . give_item2 ( "100002" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 3 then
if pc . gold >= 20000000 then
pc . changegold ( -20000000 )
pc . give_item2 ( "100003" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 4 then
if pc . gold >= 50000000 then
pc . changegold ( -50000000 )
pc . give_item2 ( "100004" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 5 then
if pc . gold >= 100000000 then
pc . changegold ( -100000000 )
pc . give_item2 ( "100005" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 6 then
if pc . gold >= 200000000 then
pc . changegold ( -200000000 )
pc . give_item2 ( "100006" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 7 then
if pc . gold >= 500000000 then
pc . changegold ( -500000000 )
pc . give_item2 ( "100007" , 1 )
else
say_title ( "Aiuto Banca" )
say ( "Mi dispiace non hai tutti gli yang che servono" )
return
end
elseif opzioni2 == 8 then
say_title ( "Aiuto Banca" )
say ( "Allora sei nabbo mi hai fatto perdere solo tempo" )
return
end
elseif opzioni1 == 2 then
say_title ( "Aiuto Banca" )
say ( "Vabbè Quando Vorrai Scambiarli Torna Da Me" )
return
end
elseif opzioni == 2 then
say_title ( "Aiuto Banca" )
say ( "Vabbè Quando Vorrai Scambiarli Torna Da Me" )
return
end

5 EURO

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 5.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 5.000.000 yang" )
pc . changegold ( 5000000 )
if pc . count_item ( 100001 ) >= 1 then
pc . remove_item ( 100001 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

10 EURO

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 10.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 10.000.000 yang" )
pc . changegold ( 10000000 )
if pc . count_item ( 100002 ) >= 1 then
pc . remove_item ( 100002 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

50 Euro

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 50.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 50.000.000 yang" )
pc . changegold ( 50000000 )
if pc . count_item ( 100004 ) >= 1 then
pc . remove_item ( 100004 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

100 Euro

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 100.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 100.000.000 yang" )
pc . changegold ( 100000000 )
if pc . count_item ( 100005 ) >= 1 then
pc . remove_item ( 100005 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

200 Euro

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 200.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 200.000.000 yang" )
pc . changegold ( 200000000 )
if pc . count_item ( 100006 ) >= 1 then
pc . remove_item ( 100006 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

500 Euro

Code:
say_title ( "Banconota Parlante by Rubbino" )
say ( "Desideri riavere i tuoi 500.000.000 yang?" )
local opzioni = select ( "Si" , "No li prenderò più avanti" )
if opzioni == 1 then
say_title ( "Banconota Parlante by Rubbino" )
say ( "Ok come desideri ti" )
say ( "ridarò indietro i soldi" )
say_reward ( "Hai ricevuto 500.000.000 yang" )
pc . changegold ( 500000000 )
if pc . count_item ( 100007 ) >= 1 then
pc . remove_item ( 100007 , 1 )
else
return
end
elseif opzioni == 2 then
say_title ( "Banconota Parlante" )
say ( "Ok come vuoi li prenderai un altra volta." )
return
end

Download:
Code:
http://www.mediafire.com/?yq7aiyrbyilx28q
avatar
~RedFoxOne~
Admin

Posts : 173
Join date : 2011-02-01
Age : 29
Location : Resita

https://tutorialetackenmt2.forumgratuit.ro

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum