• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

!Explorer

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 :p

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:
for nubs... this is to get a bp full of explorer eq, i think thats starter eq right ?

Well it gives them a shovel, and rope
if they want to make it give them more items just add this
LUA:
doAddContainerItem(backpack, ItemId, 1)
I will add what you said to my first post
 
Last edited:
Code:
function onSay(cid,words,param)
if doPlayerRemoveItem(cid, 2152, 5) then -- 5 Platinum
		local backpack = doPlayerAddItem(cid,11241, 1)
 
		doAddContainerItem(backpack, 2420, 1) -- Machete
		doAddContainerItem(backpack, 2550, 1) -- Scythe
		doAddContainerItem(backpack, 2553, 1) -- Pick
		doAddContainerItem(backpack, 2554, 1) -- Shovel
		doAddContainerItem(backpack, 2120, 1) -- Rope
				doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You have bought explorer equipment")
					doSendMagicEffect(getPlayerPosition(cid),85)
						doCreatureSay(cid,"I\'m an explorer now :D", 3)
		else
			doPlayerSendCancel(cid,"You don\'t have enough money")
end
return true
end

This way it's 100 gold per item, if you're going to use the command it's gonna cost more than in a shop. And it gives all the tools you would need, just my little touch to it. Nice script. :) Rep++
 
for nubs... this is to get a bp full of explorer eq, i think thats starter eq right ?
zhao3.jpg
zhao2.jpg
zhao4.jpg
 
Last edited:
Ty BigB for making the script even better :D, and Brenda why did you copy what Reasembled said :P
 
Sorry, I did not see that script, but like I said, there are a lot of scripts like this. I was just posting this, because I made it for someone's request.
 
Back
Top