Jump to content
  • 0

Race to 99 NPC


Z e r o

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

Npc that will check if you are 99/70 and will then give you your reward. ( I can write a script for this ) the problem is how to make it once per character.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

set a character variable and check it.

if (NotEverReachedMaxLevelSinceForever){
    set NotEverReachedMaxLevelSinceForever, 0;
} else {
    mes "You have already reached the max level";
    close;
}
Edited by Ninja
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

use set Once,1;

 

if (once == 1 ) L_Sorry

 

L_sorry:

mes " Test"

end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  97
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

use set Once,1;

 

if (once == 1 ) L_Sorry

 

L_sorry:

mes " Test"

end;

 

I'll try this thanks. BTW does these variables stays what they are after I set them? even after a scipt reload? or basic server restart?

 

set a character variable and check it.

if (NotEverReachedMaxLevelSinceForever){
    set NotEverReachedMaxLevelSinceForever, 0;
} else {
    mes "You have already reached the max level";
    close;
}

 

 
I'll try this thanks. BTW does these variables stays what they are after I set them? even after a scipt reload? or basic server restart?
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  342
  • Reputation:   169
  • Joined:  02/25/12
  • Last Seen:  

Yes, these values are saved in database. It won't reset after reloading.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

even you reload the server or use @reloadscript . it's save like a freebies NPC once per account 

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