goddameit Posted November 23, 2012 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
irawrsilentpls Posted November 23, 2012 Posted November 23, 2012 First Blood, thanks sir i'll try it Quote
KeyWorld Posted November 23, 2012 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
goddameit Posted November 23, 2012 Author 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
goddameit Posted November 23, 2012 Author 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
Lamer Posted November 23, 2012 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
GM Takumirai Posted November 23, 2012 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
goddameit Posted November 23, 2012 Author 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
Lamer Posted November 23, 2012 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
goddameit Posted November 23, 2012 Author Posted November 23, 2012 Ohh sorry but still thnx damn my rathena have a error you can use atcommand "@repairall"; to replace it Quote
GM Takumirai Posted November 23, 2012 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
KeyWorld Posted November 23, 2012 Posted November 23, 2012 You forget a change: - if( .status == 0 ) + set .@type,atoi(strnpcinfo(2)); + if( getd(".n_"+.@type+"_status") == 0 ) 1 Quote
GM Takumirai Posted November 23, 2012 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
goddameit Posted November 23, 2012 Author Posted November 23, 2012 You forget a change: - if( .status == 0 ) + set .@type,atoi(strnpcinfo(2)); + if( getd(".n_"+.@type+"_status") == 0 ) thx Quote
kangfredy Posted November 23, 2012 Posted November 23, 2012 how to make unlimited?o_Oa for everyone can use this? Quote
goddameit Posted November 23, 2012 Author Posted November 23, 2012 how to make unlimited?o_Oa for everyone can use this? research and think Quote
Ice Bear Posted November 25, 2012 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
goddameit Posted November 25, 2012 Author 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
Ice Bear Posted November 25, 2012 Posted November 25, 2012 wow? hahha your badass goddameit hahah awesome Quote
GM Takumirai Posted November 25, 2012 Posted November 25, 2012 @god - how to make the npc will disappear if going inside WOE castle??.. Quote
goddameit Posted November 25, 2012 Author 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
GM Takumirai Posted November 25, 2012 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
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.