Q>About Scripting

nameit

New member
Messages
7
Points
0
Age
33
Location
Philippines
Emulator
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 * 
default_tongue.png


 
Last edited by a moderator:
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 * 
default_tongue.png
1)
Code:
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.
 
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 * 
default_tongue.png
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  

 
Last edited by a moderator:
Back
Top