• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Transform backpack

Rodo

New Member
Joined
Oct 23, 2007
Messages
575
Solutions
1
Reaction score
3
Location
Mexico
Well, I just make a little and simple script to transform the original backacpk to demon backpack when you burn it :blink:



sinttuloi.png




Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
  if(itemEx.itemid == 1988) then
    doTransformItem(itemEx.uid, 10518)
    doRemoveItem(item.uid,1)
    doSendMagicEffect(toPosition, 6)
    return TRUE
  end
end
 
Omg pro! :wub:

Pro'er
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return itemEx.itemid == 1988 and doTransformItem(itemEx.uid, 10518) and doSendMagicEffect(toPosition, 6) and doRemoveItem(item.uid)
end
 
Last edited:
if there's items in the backpack do they survive? can't see why not just making sure before I do anything like this in my game lol
(thinking about making a spell to turn any bags you find into backpacks)
 
Back
Top