Jump to content
  • 0

Welcome Prontera Messege


Question

Posted (edited)

Hi rathena,

I would like to request a script where if a player go to Prontera, a message appears notifying where the JobMaster is using the Navigation system(/navi prontera 128/221) which will only stop appearing if it talks to the JobMaster.

I tried to use navigateto and atcommand for the navigation but didn't work.

 

Example script that I tried to use navigation:

prontera,156,189,0	script	NaviMT	-1,1,1,{

OnTouch:
	disable_items;
	mes "[^0000FF HallowRO ^000000]";
	mes "The job master is 128 221";
	mes "<NAVI>Job Master<INFO>prontera,128,221,0,000,0</INFO></NAVI>";
	atcommand "navi prontera 128/221";
	close;
}

 

Edited by Grimfiend

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
On 1/29/2017 at 9:09 AM, Grimfiend said:

Hi rathena,

I would like to request a script where if a player go to Prontera, a message appears notifying where the JobMaster is using the Navigation system(/navi prontera 128/221) which will only stop appearing if it talks to the JobMaster.

I tried to use navigateto and atcommand for the navigation but didn't work.

The reason your example script didn't work is because for the navigation to correctly work you have to target a valid cell.

-	script	NaviMT	-1,{
OnPCLoadMapEvent:
	if( strcharinfo(3) != "prontera" || #job_master || @delay > gettimetick(2) ) end;
	@delay = gettimetick(2) + 60;
	
	message strcharinfo(0),"Welcome to HallowRO the job master is located at 128 221.";
	navigateto "prontera",118,222,NAV_ALL,1;
	end;
}

prontera	mapflag	loadevent

Then when talking to the job master just set #job_master = 1;

Edited by Skorm
  • Upvote 1
  • 0
Posted

I have tried this using valid cell, but I did not succeed
This npc script that I made did with a little hurry and ended up getting like this, with too many errors :P

Thanks for helping me Skorm, your script worked very well and just the way I wanted it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...