Nero Posted November 3, 2014 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 194 Reputation: 2 Joined: 12/18/11 Last Seen: April 8, 2020 Share Posted November 3, 2014 // //=====// /==/ /==/ /==/ // // // /==/ /==/ /=/ /==/ // //=====// /==/ /=/ /==============/ /========/ /==//===/ /==/ /==/ // //=////// /==/ /==//=/ /==/ /==/==/==/==/==/ / / / /==/ /==/ /==/ // // == /==/ /==//=/ /==/ /==/ /==/ /==/ ======/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/=====/==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ /========/ /==/ /==///////==/ // ================ 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; } Quote Link to comment Share on other sites More sharing options...
Winz Posted November 3, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 3, 2014 (edited) 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 November 3, 2014 by Winz Quote Link to comment Share on other sites More sharing options...
Nero Posted November 3, 2014 Group: Members Topic Count: 74 Topics Per Day: 0.02 Content Count: 194 Reputation: 2 Joined: 12/18/11 Last Seen: April 8, 2020 Author Share Posted November 3, 2014 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 Quote Link to comment Share on other sites More sharing options...
Winz Posted November 4, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 4, 2014 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 Quote Link to comment Share on other sites More sharing options...
Question
Nero
// //=====// /==/ /==/ /==/
// // // /==/ /==/ /=/ /==/
// //=====// /==/ /=/ /==============/ /========/ /==//===/ /==/ /==/
// //=////// /==/ /==//=/ /==/ /==/==/==/==/==/ / / / /==/ /==/ /==/
// // == /==/ /==//=/ /==/ /==/ /==/ /==/ ======/ / /==/ /==/ /==/
// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/ /==/
// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/=====/==/
// // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ /========/ /==/ /==///////==/
// ================ 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.