Jump to content
  • 0

Attaching RID to another NPC.


crazyarashi

Question


  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

Good day Rathena, I'm having a problem attaching the RID and in need of support.

So this is the type of script im trying to do. I'd like to trigger an event of another npc that needs an RID. Tried many ways too attach the rid and properly trigger it yet failed and here I am seeking for support for people who has an idea. 

Thank you in advance :))
 

prontera,255,55,4	script	show_event_test	123,{
end;
OnTouch:
	if(var == 2){
		donpcevent "show_event_npc::OnEvent";
		}
	end;
}
	
prontera,255,50,4	script	show_event_npc	123,{
end;
OnEvent:
	showevent QTYPE_QUEST,1;
	end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Use doevent instead of donpcevent to keep the RID attached !

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

Big thanks @Capuche !

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...