Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EventHandler QUEST_ACCEPTED( quest_id, talker )
- {
- if( quest_id == 619 )
- {
- myself::SetCurrentQuestID( 619 );
- if( myself::GetInventoryInfo( talker, 0 ) >= myself::GetInventoryInfo( talker, 1 ) * 0.800000 ||
- myself::GetInventoryInfo( talker, 2 ) >= myself::GetInventoryInfo( talker, 3 ) * 0.800000 )
- {
- myself::ShowSystemMessage( talker, 1118 );
- return;
- }
- if( myself::GetCurrentTick() - talker.quest_last_reward_time > 1 ) <- the time you accepted you get the timer running till u get rewarded
- {
- talker.quest_last_reward_time = myself::GetCurrentTick(); <-- checks if you are previously rewarded
- myself::SetMemo( talker, quest_id );
- myself::SoundEffect( talker, "ItemSound.quest_accept" );
- myself::ShowPage( talker, "explorer_ghost_a_q0619_03.htm" ); <-- shows accepted page, change to your liking
- myself::AddLog( 1, talker, quest_id );
- }
- return;
- }
- super;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement