• 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!

Soul Token Request/Help

Blackcody

RiseOfTibia Owner
Joined
Aug 31, 2008
Messages
136
Reaction score
1
Could Some One Please Script me a soul token/item that puts your soul back to 100:huh:
 
LUA:
function onUse(cid, item, frompos, item2, topos)

if getPlayerSoul(cid) == 0 then
	  doPlayerAddSoul(cid,100) and doRemoveItem(item.uid, 1)
	doCreatureSay(cid, "Soul Token +100 soul !", TALKTYPE_ORANGE_1)
	doSendMagicEffect(getPlayerPosition(cid), 12)
else
doPlayerSendCancel(cid, "You must have 0 soul to use it.")
doSendMagicEffect(getCreaturePosition(cid), 2) 
end
    return 1
end
 
LUA:
function onUse(cid, item, frompos, item2, topos)

	local endSoul = 100
	local soulToAdd = endSoul - getPlayerSoul(cid)

	if doRemoveItem(item.uid) then
		doPlayerAddSoul(cid, soulToAdd)
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
		return true
	end

	return false
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doRemoveItem(item.uid)
	doPlayerAddSoul(cid, 100 - getPlayerSoul(cid))
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
	return true
end
 
Back
Top