• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

soul refiller remake help

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
function onUse(cid, item, fromPosition, itemEx, toPosition)

doPlayerAddSoul(cid, 300)
doRemoveItem(item.uid)

return true
end

well this is a script of a soul refilles my item id is 11239 a bunch of soul herbs xD

i want to make it like, you have a area effect on yourself, when you eat it it show Crunch, and a message your soulpoints have been refilled..

its like a remake ty =)
 
This is not a script! Please use tags, eg
LUA:
doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF)

CONST_ME_POFF - you can exchange for another

doCreatureSay(cid,  "Crunch.", TALKTYPE_MONSTER)

and so with tags:
[code=lua]
  doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF)
  doCreatureSay(cid,  "Crunch.", TALKTYPE_MONSTER)

better, huh?
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

doPlayerAddSoul(cid, 300)
doRemoveItem(item.uid)
doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF)
doCreatureSay(cid, "Crunch.", TALKTYPE_MONSTER)

return true
end
 
Back
Top