Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   sethead timeout (https://forums.graalonline.com/forums/showthread.php?t=7461)

07-17-2001 09:36 AM

sethead timeout
 
Can someone tell me why this wont work right? I want it only to let you change your head every 10 seconds just like with changing your name but only with changing your head.

NPC Code:

tokenize #c;
if (#t == 'sethead' && sec == 1){
sethead #t(1);
sec++;
}
while (sec > 1){
sleep 1.0;
sec++;

if (#t == "sethead"){
message please wait 10 seconds;
}
if (sec == 10){
sec = 1;
}
}


Komieko 07-17-2001 09:52 AM

That's on classic...you want to copy yet another thing

07-17-2001 09:56 AM

Your a idiot! It's going to probly be built into graal anyways! I want it on delteria so idiots that use trainers dont lag my server!!!!! It's not copying cause i havent been on classic or newmain for about 2 weeks now!!!! I scripted it myself so shut your mouth!!!!

Komieko 07-17-2001 09:57 AM

Calm down....

WeirdmanI9 07-17-2001 09:57 AM

Quote:

Originally posted by IcePick_2001
Your a idiot! It's going to probly be built into graal anyways! I want it on delteria so idiots that use trainers dont lag my server!!!!! It's not copying cause i havent been on classic or newmain for about 2 weeks now!!!! I scripted it myself so shut your mouth!!!!
STFU Ice Punk you little 12 year old prick

WeirdmanI9 07-17-2001 09:58 AM

Ice Punk, why do you have a modified version of the Nazi logo in one of those crappy sigs?

Cybnext_Design 07-17-2001 09:59 AM

NPC Code:

if (playerchats) {
if (strcontains(#c,sethead)) {
tokenize #c;
if (strequals(#t(0),sethead)) {
if (sec==1) {
setplayerprop #3, #t(1);
sec++;
}
while (sec > 1) {
sleep 1;
sec++;

if (strequals(#t(0),sethead)) {
message Wait 10 seconds before changing your head again!;
}
}
if (sec==10) {
sec=1;
}
}
}
}
}



That might work....i this wasnt tested....So...im not sure if it will work. But it should.

entravial 07-17-2001 02:09 PM

jeez ice pick u may as well change your name so ppl won't keep bagging you.

(not that i am on ice pick's side)

Poogle 07-19-2001 05:20 AM

Dont be mean to Ice Pick anyway it says you cant in form rules and Ice Pick cannot help the way he is...


All times are GMT +2. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.