Jump to content
  • 0

Summon npc same location


IvanD

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

6 npc same interraction / same names

all 6 npc standing right next to each other

npc will not talk to the player, unless player wearing headgear id 30000

once a player can interract, he can summon 6 aggresive monsters (ID:1000) replacing the location of 6 npc.

npc vanished during summoning... comes back after an hour

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

-	script	NPC_Summoner::NPCSummoner	-1,{
	if (getequipid(EQI_HEAD_TOP) == 30000){
		for (.@i = 1; .@i < 7;.@i++){
            set .@npcname$,"NPC_Summoner#"+.@i;    
            getmapxy(.@mapname$, .@mapx, .@mapy, BL_NPC, .@npcname$))
			monster .@mapname$,.@mapx,.@mapy,"Custom Monster",1002,1;
			hideonnpc .@npcname$;
            initnpctimer .@npcname$;
        }
	}
	end;
OnTimer360000:
    hideoffnpc strnpcinfo(0);                                 
}

map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#1	SPRITE_ID
map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#2	SPRITE_ID
map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#3	SPRITE_ID
map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#4	SPRITE_ID
map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#5	SPRITE_ID
map,x,y,pos	duplicate(NPCSummoner)	NPC_Summoner#6	SPRITE_ID

Something like this....

Note i have not tested the script.

Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

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

×
×
  • Create New...