well, here my code updated including conditions following Sauron's instructions:
Get Mark 60101 if
- 0 mark owned (between 60101 to 60106)
- 600 adena (or more) owned
Code:
///////////////////////////////////////////////////////////////////////// Controls
L60150
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60101
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60101 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60102
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60102 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60103
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60103 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60104
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60104 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60105
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60105 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60106
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 0 // if 0 item 60106 in pc inventory
equal
push_reg_sp
fetch_i
branch_false L60152 // if return false goto L60152
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 57
func_call 81 // func[OwnItemCount]
shift_sp -2
push_const 599 // if adenas > 599 in pc inventory
greater
and // ??
branch_false L60152 // if return false goto L60152
///////////////////////////////////////////////////////////////////////// NPC Give Items
L60151
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 60101
push_const 1
func_call 77 // func[GiveItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
push_const 57 // adenas
push_const 600 // take 600 adenas
func_call 80 // func[DeleteItem1]
shift_sp -3
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S60152. "sevensign601_d.htm" // Quest Description
push_string S60152
func_call 43 // func[ShowPage]
shift_sp -2
shift_sp -1
shift_sp 1
push_event // talker
push_const 32
add
fetch_i
S60153. "ItemSound.quest_accept"
push_string S60153
func_call 173 // func[SoundEffect]
shift_sp -2
shift_sp -1
L60152
exit_handler
/////////////////////////////////////////////////////////////////////////
now we need to check
castle condition in order to filter
Dawn Marks...
in other part, if i set marks as "
is_destruct=1" in order player can change if he made a mistake registering (should i ?), then if i do like that and i destruct the Mark, quest memo stay ... then i need to delete that memo with the mark... i dunno how to do it too.
finally, will i have to delete automatically all marks owned each 2 weeks ? because i cannot use MSSQL Agent do to that, it doesnt work in real time, it only deletes in databases, not in Cache :? well maybe u know a way to delete items in real time to all players who own it/them ?
Regards
PS: Again tx a lot to Sauron for all explanations