• 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!

Bp sd Help

freak15

Professional Hoster
Joined
Dec 31, 2008
Messages
356
Reaction score
2
Location
Sweden
Hello Guys I Cant Place Npc's Somthing is Wrong Only When I Am Put Out RUne Npcs Whatever.. skip that part..
i need a talkaction !bp sd
And U get 1 bp with sd Could Some1 make a script Please
 
Here it is..

data/talkactions/talkactions.xml
Paste before "</talkactions>"
LUA:
	<talkaction words="!bp sd" event="script" value="bp_sd.lua"/>

data/talkactions/scripts
Create bp_sd.lua
LUA:
function onSay(cid, words, param, channel)

local present = 2268   -- sd id
local cost = 7000      -- 7000 gp
local container = 2001 -- bp id

	if doPlayerRemoveMoney(cid, cost) == TRUE then
		local container = doPlayerAddItem(cid, container, 1)
		for i = 1, 20 do
			doAddContainerItem(container, present, 1)
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You do not have enough money.")
	end
	return TRUE
end
The script is Not Tested, but i hope it will work fine.

Regards,
Shawak

EDIT: Fixed
 
Last edited:
Back
Top