914992 0 Postado Julho 13, 2009 Share Postado Julho 13, 2009 Estou precisando de um tipo de script q fassa q 100 cristal coin vire 1 ruby coin (cristal coin vermelha) e q 100 ruby coin vire 1 (esmerald cooin) Link para o comentário https://xtibia.com/forum/topic/116196-pedido100-cristal-coin-1-ruby-coin-100-ruby-coin-1-esmerald-coin-plz/ Compartilhar em outros sites More sharing options...
Jerim 0 Postado Julho 15, 2009 Share Postado Julho 15, 2009 BEM IDEA! Link para o comentário https://xtibia.com/forum/topic/116196-pedido100-cristal-coin-1-ruby-coin-100-ruby-coin-1-esmerald-coin-plz/#findComment-763054 Compartilhar em outros sites More sharing options...
DaNDaNrOxX 15 Postado Julho 15, 2009 Share Postado Julho 15, 2009 Usuário Jerim suspenso por mass flood/suspeita de ser polonês. Abraços Link para o comentário https://xtibia.com/forum/topic/116196-pedido100-cristal-coin-1-ruby-coin-100-ruby-coin-1-esmerald-coin-plz/#findComment-763057 Compartilhar em outros sites More sharing options...
canovas 3 Postado Julho 15, 2009 Share Postado Julho 15, 2009 Crie um arquivo.lua chamado coins na pasta scripts dentro de actions function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_CRYSTAL_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEMIDODORUBYCOIN, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_RED) elseif item.itemid == ITEMIDDORUBYCOIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEMIDDOESMERALDCOIN, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_GREEN) elseif item.itemid == ITEMIDDORUBYCOIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) elseif item.itemid == ITEMIDDOESMERALDCOIN then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEMIDDORUBYCOIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) else return FALSE end return TRUE end Em seguida introduza a seguinte tag no arquivo actions.xml <action itemid="2160" script="coins.lua"/> <action itemid="ITEMIDDORUBYCOIN" script="coins.lua"/> <action itemid="ITEMIDDOESMERALDCOIN" script="coins.lua"/> ITEMIDDORUBYCOIN - Substituia pelo Item ID do Ruby Coin ITEMIDDOESMERALDCOIN - Substituia pelo Item ID do Esmerald Coin Qualquer erro ou duvida por favor me corrijam, é o meu primeiro script postado. Link para o comentário https://xtibia.com/forum/topic/116196-pedido100-cristal-coin-1-ruby-coin-100-ruby-coin-1-esmerald-coin-plz/#findComment-763260 Compartilhar em outros sites More sharing options...
joexkiller 0 Postado Julho 18, 2009 Share Postado Julho 18, 2009 Crie um arquivo.lua chamado coins na pasta scripts dentro de actions function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_CRYSTAL_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEMIDODORUBYCOIN, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_RED) elseif item.itemid == ITEMIDDORUBYCOIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEMIDDOESMERALDCOIN, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_GREEN) elseif item.itemid == ITEMIDDORUBYCOIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) elseif item.itemid == ITEMIDDOESMERALDCOIN then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEMIDDORUBYCOIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_LIGHTBLUE) else return FALSE end return TRUE end Em seguida introduza a seguinte tag no arquivo actions.xml <action itemid="2160" script="coins.lua"/> <action itemid="ITEMIDDORUBYCOIN" script="coins.lua"/> <action itemid="ITEMIDDOESMERALDCOIN" script="coins.lua"/> ITEMIDDORUBYCOIN - Substituia pelo Item ID do Ruby Coin ITEMIDDOESMERALDCOIN - Substituia pelo Item ID do Esmerald Coin Qualquer erro ou duvida por favor me corrijam, é o meu primeiro script postado. cara tem como vc me ajuda criando as moedas pra mim ??? pq nem sei como add itens no map editor !! plz help me Link para o comentário https://xtibia.com/forum/topic/116196-pedido100-cristal-coin-1-ruby-coin-100-ruby-coin-1-esmerald-coin-plz/#findComment-764383 Compartilhar em outros sites More sharing options...
Posts Recomendados