Postado Outubro 13, 2016 8 anos Galera to com esse erro na distro aqui [16:39:08.120] [Error - CreatureScript Interface] [16:39:08.120] data/creaturescripts/scripts/staminafiller.lua:onAttack [16:39:08.120] Description: [16:39:08.121] data/creaturescripts/scripts/staminafiller.lua:6: attempt to perform arithmetic on a string value [16:39:08.121] stack traceback: [16:39:08.121] data/creaturescripts/scripts/staminafiller.lua:6: in function <data/creaturescripts/scripts/staminafiller.lua:1> scripts: function onAttack(cid, target) local storage = 19387 local damage = 580 if isMonster(target) and getCreatureName(target):lower() == 'training monk' then doPlayerSetStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1) if getPlayerStorageValue(cid, storage) >= damage then doPlayerSetStamina(cid, getPlayerStamina(cid) + 1) doPlayerSetStorageValue(cid, storage, 0) end end return true end creaturescripts: <event type="attack" name="staminafiller" script="staminafiller.lua"/>
Postado Outubro 29, 2016 8 anos Em 13/10/2016 ás 16:52, trancx123 disse: if isMonster(target) and getCreatureName(target):lower() == 'training monk' then doPlayerSetStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1) Ja tentou tirar esse + 1 ou deixar ele em 0 ?
Postado Novembro 2, 2016 8 anos Explica o que você tentou fazer por que tá meio confuso pra mim, desculpe. Editado Novembro 2, 2016 8 anos por login12 (veja o histórico de edições) @This life is filled with hurt When happiness doesn't work Trust me and take my hand When the lights go out you will understand
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.