Jump to content
  • 0

Question

Posted

i dont know what to type in search, so i posted new topic,,

im looking for a freebies script . that is free for all account however when theyv reach level 230 freebies npc will remove the freebies so they will hunt their own items. is it possible?

17 answers to this question

Recommended Posts

Posted (edited)

@-SkittleNugget- : i prefer to remove freebies soon as they reach level 230 for them to learn, not to depend on freebies.
do you have script? please share. :D

@patskie: 1 freebies per character as long as their base level <230. 
so if they have 9 character all can gett freebies and  freebies will be remove when ther base levl >230. :D


 

Edited by kitty14
Posted (edited)

pastkie how can i apply that to this script?

 

//===================================================================
new_1-1,53,111,5 script Freebies 811,{
 if ( Freebies || BaseLevel > 230 ) end;{
mes "[Zubelle]";
mes "Nice to meet you "+ strcharinfo ( 0 ) +", my name is Zubelle";
mes "Welcome to ^E066FFYour RO!^000000";
mes "I see that you're new here so to help you out I'd like to give you these";
mes "items as a gift to show how much we appreciate you here!";
next;
mes "[Paulinds]";
mes "Have fun!";
getitem2 8000,1,1,0,0,0,0,0,0;
getitem2 8001,1,1,0,0,0,0,0,0;
getitem2 8002,1,1,0,0,0,0,0,0;
getitem2 8002,1,1,0,0,0,0,0,0;
getitem2 8003,1,1,0,0,0,0,0,0;
set Zeny,Zeny+5000000;
set #freebie_quest,1;
savepoint "prontera",155,181;
next;
announce "Let's welcome " + strcharinfo(0) + " for joining our server ! ",0;
warp "prontera",155,181;
close;
}
if(#freebie_quest == 1) {
mes "[Zubelle]";
mes "Have fun in ^E066FFYourRO!^000000";
next;
warp "prontera",155,181;
close;
}
}

i dont know if i did it right, but when i reach level 230 freebies are still with me, what i wanted is that ill bew warped near to the freebies npc  then the npc will get back the freebies  :D

with a message, like
you are strong now , you dont need freebies anymore..
good luck on your journey.. 

:D
Edited by Capuche
Posted

We can use an NPC to delete the exact amount or what is left, once the player has reached level 230.

If its just equipment you want to remove from players at 230, we can make it delete itself upon reaching 230 in item script.

 

provide us the item id's and amounts you are going to use so we can place it into a script for you if needed.

Posted
here
[1] 8000,Newbie_Articwings,Newbie Artic Wings,4,20,,0,,0,,1,0xFFFFFFFF,63,2,1,,0,0,1000,{ bonus ballstats,10; },{},{}
[1] 8001,Newbie_Valkyrie_Helm,Newbie Valkyrie Helm,4,20,,0,,0,,1,0xFFFFFFFF,63,2,256,,0,0,1001,{ bonus ballstats,10; },{},{}
[2 pcs] 8002,Newbiejard,Newbiejard,4,20,,0,,0,,1,0xFFFFFFFF,63,2,136,,0,0,0,{ bonus ballstats,10; },{},{}
[1] 8003,NewbieBrynhild,Newbie Brynhild,4,20,,0,,0,,1,0xFFFFFFFF,63,2,16,,0,0,0,{ bonus bMaxHP,10*BaseLevel; },{},{}

still there?

Posted


- script script -1,{

OnPCBaseLvUpEvent:

if(!freebie)

if ( #freebie_quest && BaseLevel >= 230 ) {

delitem 8000,1;

delitem 8001,1;

delitem 8002,2;

delitem 8003,1;

set(freebie,1);

}

}

Posted
-	script	freebies	1,{

OnPCLoginEvent:
	if(BaseLevel<230 && !Freebie){
	 getitembound 8000,1,1,getcharid(3);
	 getitembound 8001,1,1,getcharid(3);
	 getitembound 8002,1,1,getcharid(3);
	 getitembound 8003,1,1,getcharid(3);
	 set Freebie,1;
	}

OnPCBaseLvUpEvent:
	if (BaseLevel>230 && Freebie==1){
	 delitem 8000,1;
	 delitem 8001,1;
	 delitem 8002,1;
	 delitem 8003,1;
	 set Freebie,2;
	}
	
}

Never tested it, dont have a test server running at the moment.

Posted (edited)

http://rathena.org/board/topic/75015-asking-for-a-prize-npc/?p=160227

oh I actually means

set baselevel, 150; or @lvup 150 <-- will not trigger OnPCBaseLvUpEvent:

however

getexp ... set baseexp, baseexp + n; ... or killing a monster <-- will trigger OnPCBaseLvUpEvent:

so if you got quest script, of course can trigger this event label

EDIT

oh wait, you said level229 and KILL MONSTER to level 230 ...

I try again ...

EDIT2:

nvm...

I'll take this

EDIT3: here it is

script

[paste=ob19boj5gsk]

rathena\db\import\item_trade.txt

8000,507,100
8001,507,100
8002,507,100
8003,507,100

for debugging

item_avail

8000,5068
8001,2254
8002,2607
8003,2305
replace into item_db_re values
( 8000, 'Newbie_Articwings', 'Newbie Artic Wings', 4, 20, null, 0, null, 0, null, 1, 0xFFFFFFFF, 63, 2, 1, null, 0, 0, 152, 'bonus ballstats,10;', null, null ),
( 8001, 'Newbie_Valkyrie_Helm', 'Newbie Valkyrie Helm', 4, 20, null, 0, null, 0, null, 1, 0xFFFFFFFF, 63, 2, 256, null, 0, 0, 38, 'bonus ballstats,10;', null, null ),
( 8002, 'Newbiejard', 'Newbiejard', 4, 20, null, 0, null, 0, null, 1, 0xFFFFFFFF, 63, 2, 136, null, 0, 0, 0, 'bonus ballstats,10;', null, null ),
( 8003, 'NewbieBrynhild', 'Newbie Brynhild', 4, 20, null, 0, null, 0, null, 1, 0xFFFFFFFF, 63, 2, 16, null, 0, 0, 0, 'bonus bMaxHP,10*BaseLevel;', null, null );
prontera,157,184,5	script	ksjhfksdfj	100,{
	baseexp = baseexp + 2147000000;
}

@-SkittleNugget-

getbounditem <-- don't trust whatever script_commands.txt said

it still can drop on the floor

and why you guys loves to use up a variable ?

rathena script engine has 256 limits on permanent player variable and 96 in account variable

Edited by AnnieRuru
Posted (edited)

@

AnnieRuru:

do i need to include "(" ")"

and also i want this script
new_1-1,53,111,5 script Freebies 811,{
if ( Freebies || BaseLevel > 230 ) end;{
mes "[Zubelle]";
mes "Nice to meet you "+ strcharinfo ( 0 ) +", my name is Zubelle";
mes "Welcome to ^E066FFYour RO!^000000";
mes "I see that you're new here so to help you out I'd like to give you these";
mes "items as a gift to show how much we appreciate you here!";
next;
mes "[Paulinds]";
mes "Have fun!";
getitem2 8000,1,1,0,0,0,0,0,0;
getitem2 8001,1,1,0,0,0,0,0,0;
getitem2 8002,1,1,0,0,0,0,0,0;
getitem2 8002,1,1,0,0,0,0,0,0;
getitem2 8003,1,1,0,0,0,0,0,0;
set Zeny,Zeny+5000000;
set #freebie_quest,1;
savepoint "prontera",155,181;
next;
announce "Let's welcome " + strcharinfo(0) + " for joining our server ! ",0;
warp "prontera",155,181;
close;
}
if(#freebie_quest == 1) {
mes "[Zubelle]";
mes "Have fun in ^E066FFYourRO!^000000";
next;
warp "prontera",155,181;
close;
}
}

but its per account i want per character. im sorry its my first server. but i do really i appreciate much.
cuz im learning alot.. checkin on scripts,, 

 

Edited by kitty14
Posted

[paste=62g693li049i]

 

this script has no protection against item deleter npc though

if your server has item deleter npc, this script going to be hard to read

 

and ... of course no need to set a variable ...

  • Upvote 1

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