Eucharist96 Posted December 9, 2011 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 54 Reputation: 2 Joined: 12/09/11 Last Seen: February 28, 2013 Share Posted December 9, 2011 can some one help me to make a Npc for newbie?? (Freebies) Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 9, 2011 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Share Posted December 9, 2011 prontera,155,181,5 script Sample 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 607,10; getitem 7539,10; }else{ mes "You have claim the Reward already."; } close; } if you want to make it Character Based.. change All #Freebies into Freebies Edit the Price here getitem 607,10; getitem 7539,10; 2 1 Quote Link to comment Share on other sites More sharing options...
0 fullo Posted July 15, 2017 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 1 Joined: 02/11/16 Last Seen: March 16, 2022 Share Posted July 15, 2017 i use newbie reward script like page 1, base on Account, and i got problem, all ID in CBT season can't take in OBT season?? can someone tell me how to fix? i want all ID in CBT season can take reward in OBT season. Quote Link to comment Share on other sites More sharing options...
0 calaluis Posted April 16, 2018 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 34 Reputation: 4 Joined: 04/13/15 Last Seen: December 17, 2021 Share Posted April 16, 2018 On 9/12/2011 at 9:06 AM, Emistry said: prontera,155,181,5 script Sample 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 607,10; getitem 7539,10; }else{ mes "You have claim the Reward already."; } close; } if you want to make it Character Based.. change All #Freebies into Freebies Edit the Price here getitem 607,10; getitem 7539,10; Hello dear Technical consultation: if the emulator is restarted, will the players who already claimed their prize be able to do it again? Quote Link to comment Share on other sites More sharing options...
-1 Diconfrost VaNz Posted December 10, 2011 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 996 Reputation: 47 Joined: 11/13/11 Last Seen: March 27 Share Posted December 10, 2011 (edited) Or you can use this one. This will automatically give your new player the freebies when they login. This is Account-Based. If you want to make it Character-Based, as "Master Emistry" Said, make the two "#givenStartItems" into "givenStartItems" - script ItemGiver 1,{ OnPCLoginEvent: if(!#givenStartItems) { set #givenStartItems, 1; //=== Freebies getitem <item_id>, <quantity>; } end; } PS: if you want an item to have an expiration, use "rentitem" instead of "getitem" Edited December 10, 2011 by Diconfrost VaNz 2 Quote Link to comment Share on other sites More sharing options...
Jezu Posted December 10, 2011 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Share Posted December 10, 2011 Just a note for the thread starter. If you put '#' like #Freebies, this will be account based, meaning the other characters will not get their freebies. If you do what Emistry said, then it will be character based. NOTE: Character based freebies can abused like (create-storage-delete-create) method. To prevent this thing, you must add the Freebies to item_trade.txt and make it non-tradeable, non-storageable, non-dropable. Quote Link to comment Share on other sites More sharing options...
Eucharist96 Posted December 21, 2011 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 54 Reputation: 2 Joined: 12/09/11 Last Seen: February 28, 2013 Author Share Posted December 21, 2011 Thanks sry late answer for Thanks i have many things to do in my class =( Quote Link to comment Share on other sites More sharing options...
kojex 2.0 Posted March 17, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 49 Reputation: 1 Joined: 03/15/12 Last Seen: October 9, 2012 Share Posted March 17, 2012 hello guys..i wanna ask.. the "rentitem" is no-tradeable/no-dropable/no-storageable...is it possible to make it no-tradeable/no-dropable only...? but storageable... now i'm lookin where to change this "rentitem" function...help me please.... Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Share Posted March 17, 2012 no you cant... but you can do it by using the db/item_notrade.txt Quote Link to comment Share on other sites More sharing options...
kojex 2.0 Posted March 17, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 49 Reputation: 1 Joined: 03/15/12 Last Seen: October 9, 2012 Share Posted March 17, 2012 =____=" just now im figured that "rentitem" on my server just notradeable/nodropable only...but storageable...without any modification on db/item_notrade.txt ... anyone can explain? Quote Link to comment Share on other sites More sharing options...
AllHailToTheKing Posted March 20, 2012 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 235 Reputation: 1 Joined: 11/22/11 Last Seen: May 26, 2014 Share Posted March 20, 2012 prontera,155,181,5 script Sample 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 607,10; getitem 7539,10; }else{ mes "You have claim the Reward already."; } close; } if you want to make it Character Based.. change All #Freebies into Freebies Edit the Price here getitem 607,10; getitem 7539,10; i use this script on my server but the npc didnt show up. what would be the problem tho? here is the script prontera,90,200,5 Freebies 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 1530,1; getitem 2410,1; getitem 2630,2; getitem 14232,50; }else{ mes "You have claim the Reward already."; } close; } Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 20, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 20, 2012 check the server error output, it probably told you that the syntax is broken. either copy paste the code from here: http://upaste.me/index.php?show=17980 or do the following: prontera,90,200,5<tab>script<tab>Freebies<tab>718,{ Also you forgot to copy over the "script" between ,5 and Freebies Quote Link to comment Share on other sites More sharing options...
AllHailToTheKing Posted March 20, 2012 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 235 Reputation: 1 Joined: 11/22/11 Last Seen: May 26, 2014 Share Posted March 20, 2012 do the following:prontera,90,200,5<tab>script<tab>Freebies<tab>718,{ Also you forgot to copy over the "script" between ,5 and Freebies i did this and it works, thanks . i have 1 question. how to put a pub above the npc ? Quote Link to comment Share on other sites More sharing options...
WhatFT Posted March 20, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted March 20, 2012 (edited) I don't know where to put that codes but you can copy it here : http://pastebin.com/raw.php?i=Y6QZUKWi OnInit: waitingroom "Chat Room Message",0; end; } ^Script is given by Emistry, Thanks to him ! Edited March 20, 2012 by Paulinds Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted March 20, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted March 20, 2012 I suggest putting OnInit: either at the bottom of the script, prevents it from accidently executing.. prontera,90,200,5 script Freebies 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 1530,1; getitem 2410,1; getitem 2630,2; getitem 14232,50; close; }else{ mes "You have claim the Reward already."; close; } OnInit: waitingroom "Freebies Here",0; end; } Quote Link to comment Share on other sites More sharing options...
AllHailToTheKing Posted March 21, 2012 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 235 Reputation: 1 Joined: 11/22/11 Last Seen: May 26, 2014 Share Posted March 21, 2012 (edited) I suggest putting OnInit: either at the bottom of the script, prevents it from accidently executing.. prontera,90,200,5 script Freebies 718,{ if( !#Freebies ){ set #Freebies,1; mes "Welcome...this is your gift..."; getitem 1530,1; getitem 2410,1; getitem 2630,2; getitem 14232,50; close; }else{ mes "You have claim the Reward already."; close; } OnInit: waitingroom "Freebies Here",0; end; } prontera,90,200,5 script Freebies 718,{if( !#Freebies ){ set #Freebies,1; mes "Welcome To...this is your gift..."; getitem 1530,1; getitem 2410,1; getitem 2630,2; getitem 14232,50; close; }else{ mes "You have claim the Reward already."; close; } OnInit: waitingroom "Freebies Here",0; end; } i tried to upload this script but the npc just disappear. i think it have something wrong in the script. but when i remove the oninit: thingy the npc is working fine. any suggestion? Edited March 21, 2012 by AllHailToTheKing Quote Link to comment Share on other sites More sharing options...
NeoGenesis Posted April 1, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 120 Reputation: 0 Joined: 01/03/12 Last Seen: August 26, 2017 Share Posted April 1, 2012 how to give +7 equipment ? n zeny 50m Quote Link to comment Share on other sites More sharing options...
Neblim Posted April 1, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 50 Reputation: 4 Joined: 12/05/11 Last Seen: August 3, 2023 Share Posted April 1, 2012 i tried to upload this script but the npc just disappear. i think it have something wrong in the script. but when i remove the oninit: thingy the npc is working fine. any suggestion? Any errors in the map server? The code below seems to work fine with a @loadnpc + @reloadscript. prontera,90,200,5 script Freebies 718,{ if( !#Freebies ) { set #Freebies,1; mes "Welcome...this is your gift..."; getitem 1530,1; getitem 2410,1; getitem 2630,2; getitem 14232,50; close; } else { mes "You have claim the Reward already."; close; } OnInit: waitingroom "Freebies Here",0; end; } how to give +7 equipment ? n zeny 50m Use the getitem2 script command. getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>}; For example if you want to give a newbie one +7 Tidal Shoes you add: getitem2 2424,1,1,7,0,0,0,0,0; For giving 50 million zeny add: set Zeny, Zeny + 50000000; Quote Link to comment Share on other sites More sharing options...
SarapRO Posted April 7, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 04/02/12 Last Seen: April 24, 2012 Share Posted April 7, 2012 Sir Nameless what about IP base? i mean you cannot get anymore freebies if you already get it even if you create another account... Quote Link to comment Share on other sites More sharing options...
Joseph Posted April 7, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted April 7, 2012 Please take note that IP address can be easily changed. Anyway, this is the script: amatsu,116,146,3 script Seyra 90,{ set .@n$, "[seyra]"; setarray .@rwd[0],2115,1,2357,1,2421,1,2524,1; // Rewards: <item id>,<item amount> query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$); if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0) { mes .@n$; mes "I'm sorry, the rewards are exclusively for new players."; close; } mes .@n$; mes "Welcome! Here are some free gifts"; mes "for newcomers:"; for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 ) mes .@rwd[.@i+1] + " x " + getitemname(.@rwd[.@i]); close2; set #NewbieGift, 1; setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1; for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 ) getitem .@rwd[.@i], .@rwd[.@i+1]; end; OnInit: waitingroom "Newbie Gift!",0; end; } Quote Link to comment Share on other sites More sharing options...
NeoGenesis Posted April 13, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 120 Reputation: 0 Joined: 01/03/12 Last Seen: August 26, 2017 Share Posted April 13, 2012 (edited) how about to give everyday reward & Loyalty reward ? can anyone help me ? Edited April 13, 2012 by sapu1 Quote Link to comment Share on other sites More sharing options...
Mad Walker Posted July 15, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 177 Reputation: 9 Joined: 06/25/12 Last Seen: October 31, 2016 Share Posted July 15, 2012 How about freebies for every ip? Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 15, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Share Posted July 15, 2012 @zeek.. post#18 ??? Quote Link to comment Share on other sites More sharing options...
Mad Walker Posted July 15, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 177 Reputation: 9 Joined: 06/25/12 Last Seen: October 31, 2016 Share Posted July 15, 2012 ohhh sorry ok ok i saw it Quote Link to comment Share on other sites More sharing options...
Cephaler Posted September 30, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Share Posted September 30, 2012 Hey guys, what if: 1: I'd like to make it so they can select one item from a list of about 6 items which one they wanted ( account based ) 2: It would be 1 random item from a list of 6 items ( also account based ) Thanks Quote Link to comment Share on other sites More sharing options...
Peopleperson49 Posted October 1, 2012 Group: Members Topic Count: 219 Topics Per Day: 0.05 Content Count: 1181 Reputation: 141 Joined: 01/27/12 Last Seen: July 15, 2024 Share Posted October 1, 2012 (edited) Cephaler I suggest you take the scrpt they gave farther up the post and then study doc/script_commands.txt for your answer. Try looking up what switch, prompt, and select does. It will show you how to make menus that players can select that you can add in the previous script. I could easily do this for you, but that was how I learned by expermenting with stuff! Peopleperson49 Edited October 1, 2012 by peopleperson49 Quote Link to comment Share on other sites More sharing options...
Question
Eucharist96
can some one help me to make a Npc for newbie?? (Freebies)
Link to comment
Share on other sites
33 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.