Tormented Being
Member
I need help with 2 scripts first one is broke, doesn't work at all + i need a 30minute exhaust on it.
The second script i wanna use to buy custom gear w/o a npc.
"this should give you a bp with a bow,rope,shovel,uh,sd,food, and a key
buytools.lua
-----------------------------------------------------------------
Now here is the second script
this will buy 1 inferno aol, i want this for donation items
was wondering if its possible to have multiple possibilities in 1 script. or if i just gotta make a ton of different scripts
The second script i wanna use to buy custom gear w/o a npc.
"this should give you a bp with a bow,rope,shovel,uh,sd,food, and a key
Code:
<talkactions>
<talkaction words="!buytools" scriprt="buytools.lua" />
</talkactions>
buytools.lua
LUA:
if doPlayerRemoveMoney(cid,10000) == TRUE then
doPlayerAddItem(cid,1988,1)
doAddContainerItem(1988, 2456, 1)
doAddContainerItem(1988, 2268, 1)
doAddContainerItem(1988, 2273, 1)
doAddContainerItem(1988, 2361, 1)
doAddContainerItem(1988, 2091, 1)
doAddContainerItem(1988, 7731, 1)
doAddContainerItem(1988, 5710, 1)
doPlayerSendTextMessage(cid,1,"Here are your tools!")
else
doPlayerSendTextMessage(cid,1,"Frodo: Sorry, you do not have enough money.")
end
return 1
end
-----------------------------------------------------------------
Now here is the second script
this will buy 1 inferno aol, i want this for donation items
was wondering if its possible to have multiple possibilities in 1 script. or if i just gotta make a ton of different scripts
Code:
<talkactions>
<talkaction words="!buytools" scriprt="buytools.lua" />
</talkactions>
LUA:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,6527,100) == TRUE or doPlayerRemoveItem(cid,7910,1) == TRUE then
doPlayerAddItem(cid,7890,1)
doPlayerSendTextMessage(cid,1,"Frodo: Here is your inferno amulet!")
else
doPlayerSendTextMessage(cid,1,"Frodo: Sorry, you do not have enough money.")
end
return 1
end