erloko
28.01.2006, 23:10
this it is a simple code of interchange of an item:
L10
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 210 // staff_of_evil_sprit
push_const 1
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L20
shift_sp 1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 4900 // staff_of_evil_sprit_magicfocus
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
L30
The question:
how can i get, if this item is enchanted (ex. +5), npc gives the new item also enchanted (+5)?
Thanks for lot
L10
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 210 // staff_of_evil_sprit
push_const 1
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
L20
shift_sp 1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 4900 // staff_of_evil_sprit_magicfocus
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
L30
The question:
how can i get, if this item is enchanted (ex. +5), npc gives the new item also enchanted (+5)?
Thanks for lot