Phantom Of Rogue-Gon Posted August 7, 2013 Posted August 7, 2013 hello and good eve scripter im here to request something about freebies shop with cashpoint 100points every account Quote
DeadlySilence Posted August 7, 2013 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
Patskie Posted August 7, 2013 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
Phantom Of Rogue-Gon Posted August 7, 2013 Author 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
Patskie Posted August 7, 2013 Posted August 7, 2013 Edited my last post. Check it! how can add Cashpoint? #CASHPOINTS += <amount>; Quote
Phantom Of Rogue-Gon Posted August 7, 2013 Author Posted August 7, 2013 #CASHPOINTS += .cash_amount; change to #CASHPOINTS += <amount>; ??? i got error again master Quote
Phantom Of Rogue-Gon Posted August 7, 2013 Author 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
Patskie Posted August 7, 2013 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
Patskie Posted August 7, 2013 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
Question
Phantom Of Rogue-Gon
hello and good eve scripter
im here to request something about freebies shop
with cashpoint 100points
every account
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.