Jump to content

Question

10 answers to this question

Recommended Posts

Posted

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;
}
Posted

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;
}
Posted
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

Posted

 

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;
}
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...