kangfredy Posted August 7, 2012 Posted August 7, 2012 guys how to set one time 1 char ? from this script..why it's not work? //======================== trainer celestial ================================================ gonryun,166,132,5 script trainer celestial 123,{ if(statusoke==(1)) { mes "[ trainer celestial ]"; mes "kamu sekarang lebih kuat!kamu tak perlu kesini lagi"; close; } mes "[ trainer celestial ]"; mes "selamat datang celestial yang terpilih "; mes "disini aku akan melatihmu menjadi pasukan"; mes "yang siap bertempur"; next; mes "[ trainer celestial ]"; mes "aku akan melatihmu dan membuat kamu menjadi lebih kuat."; next; mes "[ trainer race ]"; mes "Selesai.kekuatanmu bertambah kini"; atcommand "@str 30"; atcommand "@agi 30"; atcommand "@vit 30"; set statusoke,(1); close; } Quote
kangfredy Posted August 7, 2012 Author Posted August 7, 2012 nah?i have 2 NPC's different(type) not same on this thread use same function..(if status oke (1))... Quote
Ryuuzaki Posted August 7, 2012 Posted August 7, 2012 You should remove the () around the number. if(statusoke==(1)) { to if(statusoke == 1) { set statusoke,(1); to set statusoke, 1; Hope that helps you out. Quote
Euphy Posted August 7, 2012 Posted August 7, 2012 @shadowseph: Afaik that really shouldn't make a difference. Quote
Ryuuzaki Posted August 7, 2012 Posted August 7, 2012 Tested with his script and it didn't work, tested with my version and worked. Don't know, i'm always using the newest svn, maybe his / her is outdated or something. Quote
Question
kangfredy
guys how to set one time 1 char ?
from this script..why it's not work?
//======================== trainer celestial ================================================
gonryun,166,132,5 script trainer celestial 123,{
if(statusoke==(1)) {
mes "[ trainer celestial ]";
mes "kamu sekarang lebih kuat!kamu tak perlu kesini lagi";
close;
}
mes "[ trainer celestial ]";
mes "selamat datang celestial yang terpilih
";
mes "disini aku akan melatihmu menjadi pasukan";
mes "yang siap bertempur";
next;
mes "[ trainer celestial ]";
mes "aku akan melatihmu dan membuat kamu menjadi lebih kuat.";
next;
mes "[ trainer race ]";
mes "Selesai.kekuatanmu bertambah kini";
atcommand "@str 30";
atcommand "@agi 30";
atcommand "@vit 30";
set statusoke,(1);
close;
}
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.