Jump to content
  • 0

requesting freebies


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

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

2ps0yzm.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Edited my last post. Check it!

 

how can add Cashpoint?
#CASHPOINTS += <amount>;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

#CASHPOINTS += .cash_amount;

change to

#CASHPOINTS += <amount>;

???

i got error again master 

350qmpx.jpg

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:  


set #CASHPOINTS,#CASHPOINTS + 12345;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

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

715rgz.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

 

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

715rgz.jpg

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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

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