I'm trying to modify @Emistry's non spammable broadcaster
It supose to ask player for job and level and then announce it
Restrictions are the job must be only letters, less than 25 characters and level must be from 1-175
This is what I've manage to write so far, it is not yet complete, but i'm stuck because it's not reading the 'else'
Not sure why.. not sure of anything actually xD .. all kind of tips are welcome!
//Emistry's Non Spammable Ver
prontera,147,165,5 script Broadcaster NPC 503,{set.name$,"[Broadcaster]";set.Minutes,1;if(.DelayTime<= gettimetick(2)){
mes .name$;
mes "hi ^0000FF"+strcharinfo(0)+"^000000 .";
mes "do you want to look for party for ^FF000050.000^000000z.?";
mes "remember, you agree to follow the ^5533AArules^000000.\n";
mes "for more information please visit us at.";switch( select("yes","nope")){case1:
next;
mes .name$;
mes "what is your ^FF0000job^000000?\n";
mes "you can also add your friends here.";
input(.Message1$);if(getstrlen(.Message1$)<25){
next;
mes .name$;
mes "and your level?\n";
mes "numbers 1-175";
input(.Message2);}if(.Message2>1)||(.Message2<175){
close2;set.DelayTime,gettimetick(2)+(.Minutes*1);set zeny,zeny-100000;
announce "["+strcharinfo(0)+"] is looking for party to play as "+.Message1$+" level "+.Message2+". please send him a message",0,0x007799,14;
end;}else{
next;
mes .name$;
mes "message not valid.";
mes "must be less than 25 characters and from 1-175.";
mes "try again.";
close;}case2:
next;
mes .name$;
mes "come back anytime.";
close;}}elseif(.DelayTime> gettimetick(2)){set.last,.DelayTime- gettimetick(2);set.@min,.last %(24*60*60)%(60*60)/(60);set.@sec,.last %(24*60*60)%(60*60)%(60);
mes "[Broadcaster]";
mes "cant send another meesage in "+.@min+" minutes "+.@sec+" secs";}
close;}
Question
drifterxxxx2
Hi
I'm trying to modify @Emistry's non spammable broadcaster
It supose to ask player for job and level and then announce it
Restrictions are the job must be only letters, less than 25 characters and level must be from 1-175
This is what I've manage to write so far, it is not yet complete, but i'm stuck because it's not reading the 'else'
Not sure why.. not sure of anything actually xD .. all kind of tips are welcome!
Thank you for your time
Link to comment
Share on other sites
2 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.