kitty14 Posted January 11, 2014 Posted January 11, 2014 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? Quote
-SkittleNugget- Posted January 12, 2014 Posted January 12, 2014 Yes it's possible. But are you not better off making an item that unequips itself and can't be used at level 230+ Quote
Patskie Posted January 12, 2014 Posted January 12, 2014 They can get the freebies many times as long as their base level is < 230? Quote
kitty14 Posted January 12, 2014 Author Posted January 12, 2014 (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. @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. Edited January 12, 2014 by kitty14 Quote
kitty14 Posted January 13, 2014 Author Posted January 13, 2014 (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 with a message, likeyou are strong now , you dont need freebies anymore..good luck on your journey.. Edited January 17, 2014 by Capuche Quote
-SkittleNugget- Posted January 15, 2014 Posted January 15, 2014 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. Quote
kitty14 Posted January 17, 2014 Author Posted January 17, 2014 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? Quote
Skorm Posted January 17, 2014 Posted January 17, 2014 - 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); } } Quote
-SkittleNugget- Posted January 17, 2014 Posted January 17, 2014 - 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. Quote
-SkittleNugget- Posted January 17, 2014 Posted January 17, 2014 Did it give you an error, if so what is it? Quote
kitty14 Posted January 17, 2014 Author Posted January 17, 2014 (edited) I did not get error. What i did is that i @lvu 229. Then kill monters to lvl up to 230 items are still with me. Edited January 17, 2014 by kitty14 Quote
-SkittleNugget- Posted January 17, 2014 Posted January 17, 2014 Errors on map server ? Also it would delete at 231 unless you change to the following : if(BaseLevel>=230 Quote
AnnieRuru Posted January 18, 2014 Posted January 18, 2014 (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 January 18, 2014 by AnnieRuru Quote
kitty14 Posted January 18, 2014 Author Posted January 18, 2014 (edited) @ AnnieRuru:do i need to include "(" ")"and also i want this scriptnew_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 January 18, 2014 by kitty14 Quote
AnnieRuru Posted January 18, 2014 Posted January 18, 2014 [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 ... 1 Quote
Question
kitty14
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.