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

Vip*door and medal

Martiimeus

●тнυg●ℓιƒє● ρα¢ 4 єνєя
Joined
Feb 3, 2009
Messages
500
Reaction score
1
Location
gєямαηу
Hello all hahaha,

ye its me again but hey!I wont die today or tomorrow so Im gonna make 1000 threads more! Haha:p

Well I want to make a npc which sells a vip medal for 150cc and yeah... if you bought this medal and got this medal in your bp, then you got enough access to pass this door to a special area ;)

is it possible to do that?
 
NPC:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Vip Seller" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
	<health now="185" max="185"/>
	<look type="128" addons="0" head="0" body="0" legs="0" feet="0" corpse="2317"/>
	<parameters>
		<parameter key="module_shop" value="1"/>
		<parameter key="message_greet" value="Welcome!"/>
		<parameter key="message_farewell" value="Bye..."/>
		<parameter key="message_walkaway" value="How rude!"/>
		<parameter key="shop_sellable" value="vip medal,id of medal,150000000;"/>
	</parameters>
</npc>

Door:
Code:
local ITEM_MEDAL = 1234 -- enter medal's id

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerItemCount(cid, ITEM_MEDAL) >= 1) then
		doTransformItem(item.uid, item.itemid + 1)
		doTeleportThing(cid, toPosition, TRUE)
	end
	return TRUE
end
 
Back
Top