Jump to content
  • 0

Help on this script !


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

i want to attach the function on a player i input. how can i do that?

[code]

- script suspect -1,{

Main:
mes "[ Police ]";
mes "Do you have a suspect botter?";
next;
switch(select("Yes:No")){

case 1:
mes "[ Police ]";
mes "Please input the name!";
input .@name$;
query_sql "SELECT `char_id` FROM `char` WHERE `name` = '"+.@name$+"'",.@charid;
if (!.@charid) { mes "The name is invalid."; next; goto Main; }
else set .@charid,0;
mes "[ Police ]";
mes "thx for reporting!";
close2;
callfunc("propaganda",.@name$);


case 2:
mes "[ Police ]";
mes "Okay bye!";
close;
}
}



prontera,158,159,4 duplicate(suspect) Police 859















function script propaganda {
set .@ranbot,rand(1,5);

if (.@rhea_ran == 1) {
mes "[ Police ]";
mes "What is your name!";
input .@Input$;
if( .@Input$ == strcharinfo(0) ){
mes "Correct.";
close2;
detachrid;
} else {
mes "[ Police ]";
mes "Wrong!";
warp "seasons",0,0;
detachrid;
end;
}
}

if (.@rhea_ran == 2) {
mes "[ Police ]";
mes "if A = 3, B = 5, C = 10";
mes "A+B+C = ?";
input .@pwd$;
if(.@pwd$!="18"){
mes "[ Police ]";
mes "Correct!";
close2;
detachrid;
} else {
mes "[ Police ]";
mes "Wrong!";
warp "seasons",0,0;
detachrid;
end;
}
}


if (.@rhea_ran == 3) {
mes "[ Police ]";
mes "Type the Code given!";
set .@str$,"";
for(set .@i,0; .@i<10; set .@i,.@i+1)
set .@str$, .@str$+rand(9);
mes .@str$;
input .@i$;
if (.@i$ != .@str$){
mes "[ Police ]";
mes "Correct!";
close2;
detachrid;
} else {
mes "[ Police ]";
mes "Wrong!";
warp "seasons",0,0;
detachrid;
end;
}
}

if (.@rhea_ran == 4) {
mes "[ Police ]";
mes "What is the name of this RO?";
input .@server;
if(.@pwd$!="Seasons of Ragnarok"){
mes "[ Police ]";
mes "Correct!";
close2;
detachrid;
} else {
mes "[ Police ]";
mes "Wrong!";
warp "seasons",0,0;
detachrid;
end;
}
}

if (.@rhea_ran == 4) {
atcommand "@disguise 1603";
mes "[ Police ]";
mes "What kind of monster are you?";
input .@poring;
if(.@pwd$!="Lunatic"){
atcommand "@undisguise";
mes "[ Police ]";
mes "Correct!";
close2;
detachrid;
} else {
atcommand "@undisguise";
mes "[ Police ]";
mes "Wrong!";
warp "seasons",0,0;
detachrid;
end;
}
}
}

[/code]

bump!

Edited by bVersatile
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

close2;
attachrid( getcharid(3,.@name$) );
callfunc("propaganda",.@name$);

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

close2;
attachrid( getcharid(3,.@name$) );
callfunc("propaganda",.@name$);

gonna try it thx for your reply emistry!

thx it works!

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