Phantom Of Rogue-Gon Posted August 7, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Share Posted August 7, 2013 hello and good eve scripter im here to request something about freebies shop with cashpoint 100points every account Quote Link to comment Share on other sites More sharing options...
DeadlySilence Posted August 7, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share Posted August 7, 2013 There is a semicolon missing. prontera,150,150,0 script Freebies 100,{ if ( #Freebies ) end; mes .npc$; mes "Welcome to Our Ragnarok Online!"; next; mes .npc$; mes "Here is your freebies, " +strcharinfo(0); next; for ( set .@i, 0; .@i < getarraysize(.freebie_items); set .@i, .@i + 2 ) getitem .freebie_items[.@i], .freebie_items[.@i + 1]; set #CASHPOINTS, #CASHPOINTS + .cash_amount; dispbottom "You've gained " +.cash_amount+ " cash points."; set #Freebies, 1; end; OnInit: setarray .freebie_items[0], 7227,10,7179,10; // <item id>,<amount> set .cash_amount, 100; // cash points amount set .npc$, "[ " +strnpcinfo(1)+ " ]"; end; } Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 21 hours ago Share Posted August 7, 2013 If you literally mean shop then i suggest you to use multi currency shop. But if you didn't literally mean that way. Then i conclude you are referring to a npc : prontera,150,150,0 script Freebies 100,{ if ( #Freebies ) end; mes .npc$; mes "Welcome to Our Ragnarok Online!"; next; mes .npc$; mes "Here is your freebies, " +strcharinfo(0); next; for ( set .@i, 0; .@i < getarraysize(.freebie_items); set .@i, .@i + 2 ) getitem .freebie_items[.@i], .freebie_items[.@i + 1]; #CASHPOINTS += .cash_amount; dispbottom "You've gained " +.cash_amount+ " cash points."; #Freebies = 1; end OnInit: setarray .freebie_items[0], 7227,10,7179,10; // <item id>,<amount> .cash_amount = 100; // cash points amount .npc$ = "[ " +strnpcinfo(1)+ " ]"; end; } Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 7, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 7, 2013 Hyrule,75,106,3 script Freebies 963,{ if(#NewbieGift > 0) { mes "[Freebies]"; mes "I'm sorry, the rewards are exclusively for new players."; close; } mes "[Freebies]"; mes "Welcome! To Game Guard Rebirth RO, thank my special gift for you"; mes "Remember, This is untradable to avoid abuse Happy Gaming."; mes "as newcomers:"; for(set .@i,0; .@i < getarraysize(.rwd); set .@i,.@i + 2) mes .rwd[.@i + 1] + " x "+getitemname(.rwd[.@i]); close2; set #NewbieGift,1; for(set .@i,0; .@i < getarraysize(.rwd); set .@i,.@i + 2) getitem .rwd[.@i],.rwd[.@i+1]; end; OnInit: waitingroom "Freebies Here!!",0; setarray .rwd[0],2357,1,2524,1,2421,1,2115,1,12263,5,12264,5,17004,1,17040,6,7227,10,4174,1,4047,1,4305,2,7517,5; // Rewards: <item id>,<item amount> end; } how can add Cashpoint? from your script i got error Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 21 hours ago Share Posted August 7, 2013 Edited my last post. Check it! how can add Cashpoint? #CASHPOINTS += <amount>; Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 7, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 7, 2013 #CASHPOINTS += .cash_amount; change to #CASHPOINTS += <amount>; ??? i got error again master Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 7, 2013 set #CASHPOINTS,#CASHPOINTS + 12345; Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 7, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 7, 2013 set #CASHPOINTS,#CASHPOINTS + 12345; sorry what i say . im trying to say please support the Ea truck bcoz there no developer like you btw i got error Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 21 hours ago Share Posted August 7, 2013 set #CASHPOINTS,#CASHPOINTS + 12345; sorry what i say . im trying to say please support the Ea truck bcoz there no developer like you btw i got error Sorry about that. Try this instead : prontera,150,150,0 script Freebies 100,{ if ( #Freebies ) end; mes .npc$; mes "Welcome to Our Ragnarok Online!"; next; mes .npc$; mes "Here is your freebies, " +strcharinfo(0); next; for ( set .@i, 0; .@i < getarraysize(.freebie_items); set .@i, .@i + 2 ) getitem .freebie_items[.@i], .freebie_items[.@i + 1]; set #CASHPOINTS, #CASHPOINTS + .cash_amount; dispbottom "You've gained " +.cash_amount+ " cash points."; set #Freebies, 1; end OnInit: setarray .freebie_items[0], 7227,10,7179,10; // <item id>,<amount> set .cash_amount, 100; // cash points amount set .npc$, "[ " +strnpcinfo(1)+ " ]"; end; } Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 7, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 7, 2013 same erro Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 21 hours ago Share Posted August 7, 2013 There is a semicolon missing. prontera,150,150,0 script Freebies 100,{ if ( #Freebies ) end; mes .npc$; mes "Welcome to Our Ragnarok Online!"; next; mes .npc$; mes "Here is your freebies, " +strcharinfo(0); next; for ( set .@i, 0; .@i < getarraysize(.freebie_items); set .@i, .@i + 2 ) getitem .freebie_items[.@i], .freebie_items[.@i + 1]; set #CASHPOINTS, #CASHPOINTS + .cash_amount; dispbottom "You've gained " +.cash_amount+ " cash points."; set #Freebies, 1; end; OnInit: setarray .freebie_items[0], 7227,10,7179,10; // <item id>,<amount> set .cash_amount, 100; // cash points amount set .npc$, "[ " +strnpcinfo(1)+ " ]"; end; } Thanks for the correction. :3 Quote Link to comment Share on other sites More sharing options...
Question
Phantom Of Rogue-Gon
hello and good eve scripter
im here to request something about freebies shop
with cashpoint 100points
every account
Link to comment
Share on other sites
10 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.