View Single Post
Old 19.12.2006, 18:58   #1
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default just a AI-code question

this is just something for fun but it doesn't work...

it should be on a summon (with a skill button) that recalls the target (npc or player) to the summon position (like porta in cruma tower)

but the problem is that the part here doesn't work I always get a server error

NPCINSTANTTELEPORT cannot find NPC



here the part for the teleport


push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // master
push_const 552
add
fetch_i // target_id
push_const 444
add
fetch_i4
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i // x
push_const 8
add
fetch_d
func_call 184615005 // func[FloatToInt]
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i // y
push_const 16
add
fetch_d
func_call 184615005 // func[FloatToInt]
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // myself
push_const 704
add
fetch_i // sm
push_const 544
add
fetch_i // z
push_const 24
add
fetch_d
func_call 184615005 // func[FloatToInt]
shift_sp -1
func_call 184811596 // func[InstantTeleport]
shift_sp -4
shift_sp -1




thx for help
alysia is offline