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

Create item on stackpos?

Massen

Masserv RPG
Joined
Jul 23, 2007
Messages
324
Reaction score
1
Location
Sweden
I'm trying to create the item 3573 (waterfall splash tingie) ontop of a border (4648) but it doesn't matter how I do it... It always appear underneath!

I also tried adding it with an event too be sure that it got added afterwards (and hopefully ontop) of it but still appears underneath.

I also tried to add it with stackpos. And no matther what i set it too it still appears underneath <.<

This is some parts of the scripts

The check and trigger of the "fast" event
Lua:
			if isPlayer(cid) == TRUE and (getGlobalStorageValue(29090) ==-1) then
				setGlobalStorageValue(29090, 1)
				doCreateItem(4648,1,pos9)
				addEvent(fast,100,a)
end


The "fast" event that should add the waterfall
Lua:
	function fast(a)
		local pos1 ={x=869 ,y=1181 ,z=15, stackpos=255} -- waterfall
		doCreateItem(3573,1,pos1)
		addEvent(add1,1000,a)
end


So anyone know how I can "force" create a item ontop of another one?

thanks for any help.


//Massen
 
Lua:
stackpos_ground = 0
stackpos_first_item_above_groundtile = 1
stackpos_second_item_above_groundtile = 2
stackpos_third_item_above_groundtile = 3
stackpos_fourth_item_above_groundtile = 4
stackpos_fifth_item_above_groundtile = 5
stackpos_top_creature = 253
stackpos_top_field = 254
stackpos_top_moveable_item_or_creature = 255
 
Lua:
stackpos_ground = 0
stackpos_first_item_above_groundtile = 1
stackpos_second_item_above_groundtile = 2
stackpos_third_item_above_groundtile = 3
stackpos_fourth_item_above_groundtile = 4
stackpos_fifth_item_above_groundtile = 5
stackpos_top_creature = 253
stackpos_top_field = 254
stackpos_top_moveable_item_or_creature = 255

I'v checked in to this issue, and unfortionatly you can't add items on specific stackpositions =/ And becouse of that the waterfall will always appear underneath the border becouse it's "always ontop" (always ontop is actually below everything else...)

//Massen
 
Back
Top