megachock
Member
- Joined
- Mar 12, 2009
- Messages
- 115
- Reaction score
- 7
Hey guys, im learning how to make scripts, i have some doubs
Explained.
I want if some items are in a correct position and you use the lever it will teleport you to a position.
I want to learn if you post the script please teach me how u made it =) i have seen many guides but they dont explain all functions
function onUse(cid, item, frompos, item2, topos)
position={x=200, y=200, z=7, stackpos=0}
position2={x=250 y=250 z=7}
if getThingFromPos(position) and item.itemid == 2828 then
doTeleportThing(cid,position2)
For example if in map is the item 2828 in the pos x=200 y=200 z=7 and 2929 in the pos x=201 y=200 z=7 then
doTeleportThing
for teleporting the player to a position
How i do it? i mean i put the action id in the map tiles right?..
Explained.
I want if some items are in a correct position and you use the lever it will teleport you to a position.
I want to learn if you post the script please teach me how u made it =) i have seen many guides but they dont explain all functions
function onUse(cid, item, frompos, item2, topos)
position={x=200, y=200, z=7, stackpos=0}
position2={x=250 y=250 z=7}
if getThingFromPos(position) and item.itemid == 2828 then
doTeleportThing(cid,position2)
For example if in map is the item 2828 in the pos x=200 y=200 z=7 and 2929 in the pos x=201 y=200 z=7 then
doTeleportThing
for teleporting the player to a position
How i do it? i mean i put the action id in the map tiles right?..
Last edited: