Jump to content

Recommended Posts

Posted (edited)

Preview :

http://bit.ly/Z0ECZx

Introduction :

You can hire this npc, it will follow you and give you buff.

Download :

dedicated_npc_3.txt

dedicated_npc_2.txt
dedicated_npc.txt
dedicated_npc.txt

More 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 by goddameit
  • Upvote 8
Posted

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.

  • Upvote 1
Posted

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.

Posted

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 : }
Posted

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.

  • Upvote 1
Posted

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

Posted

@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??

Posted (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 by GM Takumirai
Posted

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 :))

Posted (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 by goddameit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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