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

npc and quest request

p41nwithoutlove

New Member
Joined
Aug 12, 2008
Messages
216
Reaction score
0
idk if these have already been released or not if they have been please link

1. i need an npc that sells every piece of equipment (armor, legs, weapons, etc...)

2. a script for a quest that will make it so u can open a chest multiple times but it tp's you back to temple when you open it


rep++ for help
 
2. Made a simple one.
actions/scripts/chest.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
		itemid = 2160,
		howMany = 100,
		message = "You obtained "..config.howMany.." "..getItemNameById(config.itemid).."!",
		templePos = {x=1000, y=1000, z=7},
		capNeeded = 10
		}
	if getPlayerFreeCap(cid) == config.capNeeded then
		doPlayerAddItem(cid, config.itemid, config.howMany)
		doPlayerSendTextMessage(cid, 22, config.message)
		doTeleportThing(cid, config.templePos)
	else
		doPlayerSendCancel(cid, "You don't have enough capacity.")
	end
return TRUE
end

actions/actions.xml
PHP:
<action uniqueid="20004" event="script" value="chest.lua"/>
 
Last edited:
Back
Top