Jump to content
  • 0
nameit

Q>About Scripting

Question

Hi guys, i have some questions about scripting, 

 

1, how can i get the existing job of the player who clicked the npc? 

(The only way I did is to select the `class` on the char table at the database then make a switch for all existing jobs so that it will display the name of the job, other way to get the job? ) 

 *Thanks to Dastgir

 

 

2. how can i make commands work at offline characters?

 

 

Thank You 

* Newbie on c++ / npc scripting *  :P

Edited by nameit

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi guys, i have some questions about scripting, 

 

1, how can i get the existing job of the player who clicked the npc? 

(The only way I did is to select the `class` on the char table at the database then make a switch for all existing jobs so that it will display the name of the job, other way to get the job? )

 

 

2. how can i make commands work at offline characters?

 

 

Thank You 

* Newbie on c++ / npc scripting *  :P

1)
if (Class == JobId){ blabla;}
2) it depends on which command and how commands work, so either we need to execute query on sql, or something else.

Share this post


Link to post
Share on other sites
  • 0

 

Hi guys, i have some questions about scripting, 

 

1, how can i get the existing job of the player who clicked the npc? 

(The only way I did is to select the `class` on the char table at the database then make a switch for all existing jobs so that it will display the name of the job, other way to get the job? )

 

 

2. how can i make commands work at offline characters?

 

 

Thank You 

* Newbie on c++ / npc scripting *  :P

1)
if (Class == JobId){ blabla;}
2) it depends on which command and how commands work, so either we need to execute query on sql, or something else.

 

1. this is what i already did on my existing script, but i just used switch(Class) {case 4077: mes "Sura";} just like that   Sorry haha i thought you are referring on `class` field on database, already looked at job change quest and it is there (Class == JobID) , Thanks Dastgir

 

2. let say i want to clone? @slaveclone or @clone

 

Thanks  

Edited by nameit

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.