Rugged Mage
Lua Scripter
- Joined
- Mar 8, 2010
- Messages
- 1,182
- Solutions
- 2
- Reaction score
- 77
Just made a new command for someone, thought some people might need it. I know there are a lot of scripts like this, but here it is anyways 
this script gives you a backpack, shovel and rope.
if you want it to give more items add this to the script
PHP:
function onSay(cid,words,param)
if doPlayerRemoveItem(cid, 2148, 100) then -- removes the money.
local backpack = doPlayerAddItem(cid,11241, 1)
doAddContainerItem(backpack, 2554, 1) -- adds an item to the backpack
doAddContainerItem(backpack, 2120, 1)
doPlayerSendTextMessage(cid, 22, "You have bought explorer equipment")
doSendMagicEffect(getPlayerPosition(cid),45) -- sends a magic effect to the person.
doCreatureSay(cid,"I\'m an explorer now :D", 3) -- makes the person say, the message.
else
doPlayerSendCancel(cid,"You don\'t have enough money")
end
return true
end
this script gives you a backpack, shovel and rope.
if you want it to give more items add this to the script
LUA:
doAddContainerItem(backpack, ItemId, 1)
Last edited: