I needed a pretty simple script, but i have no scripting experience at all apart from understanding through editing of functions.
However, i don't necessarily understand what goes where, etc
So here is my attempt at making a script where you click use on an item, and you get a bp with items inside:
Guess it's for 0.3~
LUA
XML:
If this right?
However, i don't necessarily understand what goes where, etc
So here is my attempt at making a script where you click use on an item, and you get a bp with items inside:
Guess it's for 0.3~
LUA
XML:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel (cid > 50) do
local backpack = doPlayerAddItemEx(cid, 1988, 1)
doAddContainerItem(backpack, 2457, 1)
doAddContainerItem(backpack, 2173, 1)
doAddContainerItem(backpack, 2524, 1)
doAddContainerItem(backpack, 2463, 1)
doAddContainerItem(backpack, 2152, 1)
doAddContainerItem(backpack, 2383, 1)
doAddContainerItem(backpack, 2647, 1)
doAddContainerItem(backpack, 2394, 1)
doAddContainerItem(backpack, 2643, 1)
doAddContainerItem(backpack, 2387, 1)
doAddContainerItem(backpack, 2389, 1)
doAddContainerItem(backpack, 2182, 1)
doAddContainerItem(backpack, 2190, 1)
doPlayerSendTextMessage (cid,22,"You have received the beginner set!")
else
doPlayerSendCancel(cid,"You don't have the required level to use this.")
return true
end
XML:
XML:
<action actionid="" event="script" value=".lua"/>
If this right?
Last edited: