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

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

  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.

Loading...

×
×
  • Create New...

Important Information

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