Jump to content
  • 0

how to make this 1 per account only


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  


//        //=====//     /==/     /==/          /==/      

//       //     //     /==/     /==/  /=/     /==/         

//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/

//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/

//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/

//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/

//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/

// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/

// ================ rAthena Script ====================================================================

//=== Made by Rikimaru

//==================== Information ====================================================================

//==== Daily Reward Script

//================= Version : =========================================================================

//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]

//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]

//============== Credits : ============================================================================

//=== Credits to Rikimaru for the Daily Reward Script

//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/

//=====================================================================================================

//*************************************************************************

invek,140,207,3 script Wishing Valkyrie 403,{

//=========================== Settings ================================================================

set .@rewname$,"^0000FF[ Wishing Valkyrie ]^000000";// YOU MAY CHANGE THE NAME OF THE NPC

//set .rewardid,7227;// CHANGE THE XXXXX TO THE ITEM ID,WHICH THE PLAYER SHOULD GET

//set @rewardamount,5;// CHANGE THE XX TO THE AMOUNT OF THE ITEM WHICH YOU WANT THE PLAYER TO GET

//======================= Settings End ================================================================

//*****************************************************************************************************

if(gettimetick(2) - lastTimeTalked > (60 * 60 * 24)) {

mes .@rewname$;

mes "Hello "+strcharinfo(0)+",I";

mes "am here to give you a daily";

mes "Wish. Do you want to have it?";

next;

switch(select("-Yes,sure!:-No,bye!:-Cancel")) {

case 1:

mes .@rewname$;

mes "Okay going to give you the item!";

next;

mes .@rewname$;

switch(rand(1, 7))

{

case 1:

getitem 671,1;

break;

case 2:

getitem 671,1;

break;

case 3:

getitem 671,1;

break;

case 4:

getitem 671,1;

break;

case 5:

getitem 7539,1;

break;

case 6:

getitem 671,20;

Announce "OMG! "+strcharinfo(0)+" Get 20pcs Gold Coins!!! From Wishing Valkyrie",bc_all;

break;

case 7:

getitem 671,1;

break;

}

mes "Okay have fun with it!";

set lastTimeTalked,gettimetick(2);

close;

case 2:

mes .@rewname$;

mes "Okay goodbye!";

close;

case 3:

close;

}

}

mes .@rewname$;

mes "Sorry :(";

mes "You can wish again after";

mes "24 Hours are over!";

close;

}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   174
  • Joined:  12/14/11
  • Last Seen:  

replace all "lastTimeTalked" to "#lastTimeTalked"

 

//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/         
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ====================================================================
//=== Made by Rikimaru
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
invek,140,207,3 script Wishing Valkyrie 403,{
//=========================== Settings ================================================================
set .@rewname$,"^0000FF[ Wishing Valkyrie ]^000000";// YOU MAY CHANGE THE NAME OF THE NPC
//set .rewardid,7227;// CHANGE THE XXXXX TO THE ITEM ID,WHICH THE PLAYER SHOULD GET
//set @rewardamount,5;// CHANGE THE XX TO THE AMOUNT OF THE ITEM WHICH YOU WANT THE PLAYER TO GET
//======================= Settings End ================================================================
//*****************************************************************************************************


if(gettimetick(2) - #lastTimeTalked > (60 * 60 * 24)) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Wish. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes .@rewname$;
switch(rand(1, 7))
{
case 1:
getitem 671,1;
break;
case 2:
getitem 671,1;
break;
case 3:
getitem 671,1;
break;
case 4:
getitem 671,1;
break;
case 5:
getitem 7539,1;
break;
case 6:
getitem 671,20;
Announce "OMG! "+strcharinfo(0)+" Get 20pcs Gold Coins!!! From Wishing Valkyrie",bc_all;
break;
case 7:
getitem 671,1;
break;


}
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2);
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry :(";
mes "You can wish again after";
mes "24 Hours are over!";
close;


}
Edited by Winz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

replace all "lastTimeTalked" to "#lastTimeTalked"

 

//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/         
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ====================================================================
//=== Made by Rikimaru
//==================== Information ====================================================================
//==== Daily Reward Script
//================= Version : =========================================================================
//=== V 1.1   Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0   Finished Scripting the Daily Reward Script [ Rikimaru ]
//============== Credits : ============================================================================
//=== Credits to Rikimaru for the Daily Reward Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=====================================================================================================
//*************************************************************************
invek,140,207,3 script Wishing Valkyrie 403,{
//=========================== Settings ================================================================
set .@rewname$,"^0000FF[ Wishing Valkyrie ]^000000";// YOU MAY CHANGE THE NAME OF THE NPC
//set .rewardid,7227;// CHANGE THE XXXXX TO THE ITEM ID,WHICH THE PLAYER SHOULD GET
//set @rewardamount,5;// CHANGE THE XX TO THE AMOUNT OF THE ITEM WHICH YOU WANT THE PLAYER TO GET
//======================= Settings End ================================================================
//*****************************************************************************************************


if(gettimetick(2) - #lastTimeTalked > (60 * 60 * 24)) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Wish. Do you want to have it?";
next;
switch(select("-Yes,sure!:-No,bye!:-Cancel")) {
case 1:
mes .@rewname$;
mes "Okay going to give you the item!";
next;
mes .@rewname$;
switch(rand(1, 7))
{
case 1:
getitem 671,1;
break;
case 2:
getitem 671,1;
break;
case 3:
getitem 671,1;
break;
case 4:
getitem 671,1;
break;
case 5:
getitem 7539,1;
break;
case 6:
getitem 671,20;
Announce "OMG! "+strcharinfo(0)+" Get 20pcs Gold Coins!!! From Wishing Valkyrie",bc_all;
break;
case 7:
getitem 671,1;
break;


}
mes "Okay have fun with it!";
set #lastTimeTalked,gettimetick(2);
close;
case 2:
mes .@rewname$;
mes "Okay goodbye!";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry :(";
mes "You can wish again after";
mes "24 Hours are over!";
close;


}

i got error from the beginning of the script sir 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   174
  • Joined:  12/14/11
  • Last Seen:  

is it like...

are you simply copying and pasting from the board, save as txt and load it?

are you aware that script headers shall be

 

map,x,y<tab>script<tab>name<tab>spriteid,{

instead of

map,x,y<space>script<space>name<space>spriteid,{

 

????

 

don't just do copy paste. check the tabs on the scripts as well

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