Postado Outubro 23, 2014 10 anos Galera meu serve sempre dando esses bug, queria uma ajuda de novo, quando poem bless no char só é retirado 10k da bag do player sendo que o preço ta 80k no script e qnd o char morre perde a bag , de aol tb, pq isso ? ajuda ai? conflitos ? :'( RESOLVIDO ~~
Postado Outubro 23, 2014 10 anos irmao, procura alguns scripts novos.. e refaça. talvez sejam bobagens..
Postado Outubro 23, 2014 10 anos quando poem bless no char só é retirado 10k da bag do player sendo que o preço ta 80k no script Substitua o seu script de bless por este: local tab = { bless = {1, 2, 3, 4, 5}, price = 80000 } function onSay(cid, words, param) for i = 1, table.maxn(tab.bless) do if(getPlayerBlessing(cid, tab.bless[i])) then doPlayerSendCancel(cid, "You already have all the blessings.") return true end if(getPlayerMoney(cid) >= tab.price) then doPlayerAddBlessing(cid, tab.bless[i]) doPlayerRemoveMoney(cid, tab.price) doCreatureSay(cid, "You are now blessed!", TALKTYPE_MONSTER) doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYAREA) else doPlayerSendCancel(cid, "You need "..tab.price.." gold coins to buy the blessings.") end end return true end e qnd o char morre perde a bag , de aol tb Remova o creaturescript de aol do seu servidor e use este: amuletofloss.lua (data/creaturescripts/scripts): local aolid = 2173 function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if(isPlayer(cid) and (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == aolid)) then doCreatureSetDropLoot(cid, false) doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYAREA) end return true end function onDeath(cid, corpse, deathList) if isPlayer(cid) and (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == aolid) then doPlayerRemoveItem(cid, aolid, 1) end return true end Adicione ao arquivo login.lua (data/creaturescripts/scripts): registerCreatureEvent(cid, "amuletofloss") registerCreatureEvent(cid, "removeaol") Adicione as tags - creaturescripts.xml (data/creaturescripts): <event type="PrepareDeath" name="amuletofloss" event="script" value="amuletofloss.lua"/> <event type="death" name="removeaol" event="script" value="amuletofloss.lua"/> Editado Outubro 23, 2014 10 anos por Suicide (veja o histórico de edições) The corrupt fear us. The honest support us. The heroic join us.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.