Jump to content
Nobre

NPC's

Recommended Posts

ex: open winterland ( map folder ) and open winterlandnpc.txt and add a new line: 

30	Manu Seller	1	45	0	25500,86600	25500,86600	180	Winter Island	0	0	manu_1	0

"30" is the npc id change it, if your last npc is "10" make this one "11" etc..
"25500,25500" is the cordinates you want the npc you can change to any cords but remember to leave the two last numbers 00 ex: " 99900,99900" the 999 is the cords but keep the 00 at the end always.

then go to script>misscript>NpcScript04 or any and go to the end and add:
 

function manu_1()


	Talk( 1, "Manu Seller: Welcome! Have a look around!" )
	Text( 1, "Trade", BuyPage )

	InitTrade()
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	
end

Where you see " ID " edit it to the item ID's from your iteminfo

I hope it helped

Share this post


Link to post
Share on other sites
33 minutes ago, Rinor said:

ex: open winterland ( map folder ) and open winterlandnpc.txt and add a new line: 


30	Manu Seller	1	45	0	25500,86600	25500,86600	180	Winter Island	0	0	manu_1	0

"30" is the npc id change it, if your last npc is "10" make this one "11" etc..
"25500,25500" is the cordinates you want the npc you can change to any cords but remember to leave the two last numbers 00 ex: " 99900,99900" the 999 is the cords but keep the 00 at the end always.

then go to script>misscript>NpcScript04 or any and go to the end and add:
 


function manu_1()


	Talk( 1, "Manu Seller: Welcome! Have a look around!" )
	Text( 1, "Trade", BuyPage )

	InitTrade()
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	Defence(	ID	)
	
end

Where you see " ID " edit it to the item ID's from your iteminfo

I hope it helped

thx i will try it out

Share this post


Link to post
Share on other sites
1 minute ago, Nobre said:

@Rinor i added an // b4 the NPC ID some how he is still showing xD 

do i need to compile the garnerNPC.txt?

yes the npc is in argent and i commented the right NPC

Yes


xbx3.png

Share this post


Link to post
Share on other sites
19 hours ago, Nobre said:

@Rinor i added an // b4 the NPC ID some how he is still showing xD 

do i need to compile the garnerNPC.txt?

yes the npc is in argent and i commented the right NPC

No, you dont have to complie it, just try delete the .bin and reopen the server it will automaticaly add the .bin

Share this post


Link to post
Share on other sites
3 minutes ago, Rinor said:

No, you dont have to complie it, just try delete the .bin and reopen the server it will automaticaly add the .bin

aprently there were 2 NPC with the exact same name and i removed the wrong one

problem solved ty alot

@V3ct0r

this thread can be closed

Edited by Nobre

Share this post


Link to post
Share on other sites
On 10/7/2016 at 3:24 PM, Rinor said:

No, you dont have to complie it, just try delete the .bin and reopen the server it will automaticaly add the .bin

When reopen server have error dont compile garnernpc.txt any solution?

Share this post


Link to post
Share on other sites
On 4/4/2020 at 3:10 PM, V1k1NGO said:

When reopen server have error dont compile garnernpc.txt any solution?

What error?


Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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