Jump to content
  • 0

atcommand


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

i have a problem about this code, the atcommand is not working? help please..

OnTouch:
switch(rand(1,3)) {
case 1:
 mes "HaABbBAazZaAaAGgGaAAkKK!";
 specialeffect EF_BASH3D2;
 if ( countitem(2782) >=1) {
 atcommand "@nuke " + strcharinfo(0) +
} else {
mes "You Did not Finish the New World Quest";
mes "Where is the Ring of the Wise King?";
mes "You must Have that for Proof, that you finish the New World";
close; 
next;
mes "^0000FF[ Xavier ]^000000";
mes "HAHA! Got You!, Im not that easy to talk with";
next;
mes "^0000FF[ Xavier ]^000000";
mes "Heh Heh heh heh...";
atcommand "@nuke " + strcharinfo(0) +
close;

Link to comment
Share on other sites

5 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:  

change

atcommand "@nuke " + strcharinfo(0) +

to

atcommand "@nuke " + strcharinfo(0);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

how about this

im wondering about the gettime tick...what if a player gets this quest..will the next player can get this quest too?

mes "[ Xavier ]";
 mes "So, Are you Up for Some Daily Quest?";
 switch(select("No, thanks","Yes")) {

case 1:
 mes "Good bye then";
 close;
case 2:
 if(gettimetick(2) - helped2 < (60 * 60 * 24)) {
 mes "^0000FF[ Xavier ]^000000";
 mes "Yoh! Ready to Gangnam?!";
 next;
mes "[ Xavier ]";
 mes "You must wait for the Daily Quest to Cooldown";
 mes "Until 1 day(s) is over!";
 close;
}

Edited by Mr BrycE
Link to comment
Share on other sites


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

ur stored variable is permanent character integer variable ...it wont affect other players.....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

this is the continuation of the script..

im having a problem on the gettimetick,

i already did the quest..but its still conituing on the part oif..

"Here is the list..blah blah"..

what's wrong?

mes "[ Xavier ]";
 mes "So, Are you Up for Some Daily Quest?";
 switch(select("No, thanks","Yes")) {

case 1:
 mes "Good bye then";
 close;
case 2:
 if(gettimetick(2) - helped2 < (60 * 60 * 24)) {
 mes "^0000FF[ Xavier ]^000000";
 mes "Yoh! Ready to Gangnam?!";
 next;
mes "[ Xavier ]";
 mes "You must wait for the Daily Quest to Cooldown";
 mes "Until 1 day(s) is over!";
 close;
}
 mes "Xavier's Daily Quest.";
 mes "Here is the list of items to Complete this Daily Quest.";
 next;
  mes "^cc00001x Odin Mask";
  mes "1x Black Sakkat Bamboo ";
  mes "1x BloodyButterfly Wings";
  mes "1x SAWing";
  mes "and 1x LD Horn";
 next;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Add this line upon completion of the quest.

set helped2,gettimetick(2)+86400;

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