Jump to content
  • 0

Welcome Prontera Messege


Grimfiend

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  01/11/17
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  01/11/17
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...