kangfredy Posted August 7, 2012 Group: Members Topic Count: 112 Topics Per Day: 0.02 Content Count: 388 Reputation: 4 Joined: 05/01/12 Last Seen: October 25, 2022 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted August 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 7, 2012 That should work fine. o.o Quote Link to comment Share on other sites More sharing options...
kangfredy Posted August 7, 2012 Group: Members Topic Count: 112 Topics Per Day: 0.02 Content Count: 388 Reputation: 4 Joined: 05/01/12 Last Seen: October 25, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Ryuuzaki Posted August 7, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 87 Reputation: 13 Joined: 02/15/12 Last Seen: September 11, 2024 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted August 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 7, 2012 @shadowseph: Afaik that really shouldn't make a difference. Quote Link to comment Share on other sites More sharing options...
Ryuuzaki Posted August 7, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 87 Reputation: 13 Joined: 02/15/12 Last Seen: September 11, 2024 Share 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 Link to comment Share on other sites More sharing options...
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;
}
Link to comment
Share on other sites
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.