Sorry for double post. Merge if you want.
Anyways, as promised heres a few snippets of sample AI and quest_pch stuff.
This is for my new subclass quest and AI that I'm working on currently.
quest_pch
[path_to_subclass] 700
quest_pch2
700 2 19001 19006
I'm not posting clientside stuff, just look in your existing client files and follow the format. Easy enough.
I don't have alot of AI to show, but you were asking how to make them show up in the accepted quests screen, here is how:
shift_sp 1
push_event // talker
push_const 32
add
fetch_i // quest_last_reward_time
push_const 644
add
push_reg_sp
fetch_i
shift_sp 1
func_call 23 // func[GetCurrentTick]
assign
push_event // talker
push_const 32
add
fetch_i
push_const 700 //THIS IS THE QUEST ID.
func_call 60 // func[SetMemo]
shift_sp -2
push_event // talker
push_const 32
add
fetch_i
S90600. "ItemSound.quest_accept"
push_string S90600
func_call 173 // func[SoundEffect]
shift_sp -3
Place this in your quest_accepted handler and call it from an htm with <a action="bypass -h quest_accept?quest_id=700">Start Quest</a>
You will still have to add in checks for if they have already started quest and such. And the progress of the quest with SetMemoState.
Sorry it's not fully working, but I'm just starting to learn this stuff as well. Just posting what I get working to help others out if they are stuck at the same spots as I was.
|