goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted November 23, 2012 (edited) Preview :http://bit.ly/Z0ECZxIntroduction :You can hire this npc, it will follow you and give you buff.Download : dedicated_npc_3.txt dedicated_npc_2.txtdedicated_npc.txtdedicated_npc.txtMore NPC : First add new npc like this: <map>,<x>,<y>,<facing><tab>duplicate(DedicatedNPCMain)<tab><npc name><tab><sprite id> Add new name define into .npc_name$ setarray .npc_name$[0],"Dedicated Poring AAA","Dedicated Poring BBB","Dedicated Poring CCC"; Time Set :60 seconds set getvariableofnpc(.npc_time[@id_use],"DedicatedNPCTimer"),gettimetick(2)+60; Update : 2014/02/27 : http://hercules.ws/board/topic/4107-dedicated-npc-v2/?p=27298 http://rathena.org/board/topic/74607-dedicated-npc-v2/?p=244414 2014/01/24 : Rewrite timer and npc runner. Edit :No repairall? >> reply Edited February 27, 2014 by goddameit 8 Quote Link to comment Share on other sites More sharing options...
irawrsilentpls Posted November 23, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 05/29/12 Last Seen: January 22, 2014 Share Posted November 23, 2012 First Blood, thanks sir i'll try it Quote Link to comment Share on other sites More sharing options...
KeyWorld Posted November 23, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted November 23, 2012 Hi goddameit ! Did you test with multiple NPC ? I don't think it will work. You use "duplicate" and all variables are NPC variables, so all configs are share between NPC, and should be overwrite each time you ask to a new NPC to follow you. 1 Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 Hi goddameit ! Did you test with multiple NPC ? I don't think it will work. You use "duplicate" and all variables are NPC variables, so all configs are share between NPC, and should be overwrite each time you ask to a new NPC to follow you. seen you are right, fixing. Quote Link to comment Share on other sites More sharing options...
x13th Posted November 23, 2012 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 206 Reputation: 14 Joined: 11/20/11 Last Seen: April 9, 2024 Share Posted November 23, 2012 cool ♥.♥ Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 (edited) Update : 2012/11/23 - 19:08 1. KeyWorld's report 2. Limit you only can hire one npc. 3. Log out error Edited November 23, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
Lamer Posted November 23, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/17/12 Last Seen: March 9, 2013 Share Posted November 23, 2012 How to fix this ? [Error]: Loading NPC file: npc/custom/dedicated_npc.txt script error on npc/custom/dedicated_npc.txt line 27 parse_line: expect command, missing function name or calling undeclared func tion 22 : { 23 : case 1: 24 : openstorage; 25 : close; 26 : case 2: * 27 : 'r'epairall; 28 : close; 29 : case 3: 30 : callsub OnEndd; 31 : close; 32 : } Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 23, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 23, 2012 what the.. nice release.. love this.. changing the npc ID to priest as it follow you like a priest.. nice idea.. Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 How to fix this ? [Error]: Loading NPC file: npc/custom/dedicated_npc.txt script error on npc/custom/dedicated_npc.txt line 27 parse_line: expect command, missing function name or calling undeclared func tion 22 : { 23 : case 1: 24 : openstorage; 25 : close; 26 : case 2: * 27 : 'r'epairall; 28 : close; 29 : case 3: 30 : callsub OnEndd; 31 : close; 32 : } use rA, thx. 1 Quote Link to comment Share on other sites More sharing options...
Lamer Posted November 23, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/17/12 Last Seen: March 9, 2013 Share Posted November 23, 2012 How to fix this ? [Error]: Loading NPC file: npc/custom/dedicated_npc.txt script error on npc/custom/dedicated_npc.txt line 27 parse_line: expect command, missing function name or calling undeclared func tion 22 : { 23 : case 1: 24 : openstorage; 25 : close; 26 : case 2: * 27 : 'r'epairall; 28 : close; 29 : case 3: 30 : callsub OnEndd; 31 : close; 32 : } use rA, thx. Ohh sorry but still thnx damn my rathena have a error Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 Ohh sorry but still thnx damn my rathena have a error you can use atcommand "@repairall"; to replace it Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 23, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 23, 2012 @god it seems there was a problem, - using latest rAthena - using your script without edit and the latest you release, when i hired the poring it follows me, when i click again the poring to open my storage or any option nothing happens?? Quote Link to comment Share on other sites More sharing options...
Rayhan Posted November 23, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 102 Reputation: 1 Joined: 11/06/12 Last Seen: May 8, 2013 Share Posted November 23, 2012 Nice, thank you. Quote Link to comment Share on other sites More sharing options...
KeyWorld Posted November 23, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted November 23, 2012 You forget a change: - if( .status == 0 ) + set .@type,atoi(strnpcinfo(2)); + if( getd(".n_"+.@type+"_status") == 0 ) 1 Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 23, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 23, 2012 (edited) is't correct if( .status == 0 ) set .@type,atoi(strnpcinfo(2)); if( getd(".n_"+.@type+"_status") == 0 ) { for(set .@i,1;.@i<=.amount;set .@i,.@i+1) if( getd(".n_"+.@i+"_master") == getcharid(3) ) { thanks problem solved Edited November 23, 2012 by GM Takumirai Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 You forget a change: - if( .status == 0 ) + set .@type,atoi(strnpcinfo(2)); + if( getd(".n_"+.@type+"_status") == 0 ) thx Quote Link to comment Share on other sites More sharing options...
kangfredy Posted November 23, 2012 Group: Members Topic Count: 112 Topics Per Day: 0.02 Content Count: 388 Reputation: 4 Joined: 05/01/12 Last Seen: October 25, 2022 Share Posted November 23, 2012 how to make unlimited?o_Oa for everyone can use this? Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 23, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 23, 2012 how to make unlimited?o_Oa for everyone can use this? research and think Quote Link to comment Share on other sites More sharing options...
Ice Bear Posted November 25, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 166 Reputation: 27 Joined: 11/20/11 Last Seen: Tuesday at 12:35 AM Share Posted November 25, 2012 Ah sir just a little request can you add this stuffs Check the Players HP % Example Can be set the % of HP so the Dedi NPC can heal you up around 1-100%? requires 1 Heal Potion (Item Stacked 50 pcs) Consume 1 Heal Potion when the Dedi NPC Heals the Player? when players hp is 40%-50% the Dedi NPC will auto heal the player? Thanks hahah just a IDEA ) Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 25, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 25, 2012 Ah sir just a little request can you add this stuffs ..... Thanks hahah just a IDEA ) if(maxhp/hp>=4) { percentheal 15,15; specialeffect2 312; } Quote Link to comment Share on other sites More sharing options...
Ice Bear Posted November 25, 2012 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 166 Reputation: 27 Joined: 11/20/11 Last Seen: Tuesday at 12:35 AM Share Posted November 25, 2012 wow? hahha your badass goddameit hahah awesome Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 25, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 25, 2012 @god - how to make the npc will disappear if going inside WOE castle??.. Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 25, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 25, 2012 (edited) @god - how to make the npc will disappear if going inside WOE castle??.. getmapxy(getd(".n_"+.@type+"_master_map$")....; getmapxy(getd(".n_"+.@type+"_npc_map$")....; { add something } if(maxhp/hp>=4) { something : if( getd(".n_"+.@type+"_master_map$") == "map name" ) { callsub OnEndd; break; } Edited November 25, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 25, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 25, 2012 (edited) God if( getd(".n_"+.@type+"_master_map$") == "prt_cas01" ) - how to make it more maps? Edited November 25, 2012 by GM Takumirai Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 25, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Author Share Posted November 25, 2012 http://goo.gl/pdr18 Quote Link to comment Share on other sites More sharing options...
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.