Jump to content
Sign in to follow this  
AnaMutaz

Npc teleporter creat

Recommended Posts

I don't know if there is a guide.

but long long ago, developers such as Saeed, Matt, and other veterans learned by looking how existing npcs work.

 

See Argent Teleporter - Senna ?

Why not trace her to her roots?

 

Hint: start off with garnernpc.txt


kong.png

a2.png

Share this post


Link to post
Share on other sites
20 hours ago, AnaMutaz said:

Any Guide For Npc Teleporter Creat ? 

any Guide for creat New items ? 

this pic is miss click... 

mapissuse.jpg



1) NPC Teleporter:

function NpcTele ()
	Talk( 1, "Would you like to teleport to Heaven?" )
	Text( 1, "Teleport to Heaven", JumpPage, 5 )

	Talk( 5, "Are you sure you want to teleport to heaven?" )
	Text( 5, "Teleport", GoTo, 1749, 908, "jialebi" )

end


function NpcTele1()

	--È¡Ïû´«ËÍ·µ»ØÑ¡Ôñ´«Ë͵صãµÄ¶Ô»°ÄÚÈݺÍÒ³Ãæ±àºÅ
	local ReSelectTalk = "I need to reconsider¡­"
	local ReSelectPage = 1

	--È¡Ïû´«ËͺÍÍ˳ö´«Ë͵ĶԻ°ºÍÒ³Ãæ±àºÅ
	local CancelSelectTalk = "Forget it¡­I will stay here"
	local CancelSelectPage = 2

	--µØͼÃû³ÆÐÅÏ¢
	local CurMapName1 = "garner"

	--°×ÒøÖ®³Ç×ø±ê
	local GoTo01X = 2231
	local GoTo01Y = 2788
	local GoTo01M = CurMapName1

	Talk( 1, "Jovial: Hi! I am the Teleporter! How may I help you?" )
	Text( 1, "Go to Argent City!", JumpPage, 4 )

	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 4, "Teleports to Argent City? No problem! Please pay 500G. Free for players Lv 10 and below!" )
	Text( 4, "Teleport",MultiTrigger, GetMultiTrigger(), 2 ) 
	Text( 4, CancelSelectTalk, JumpPage , CancelSelectPage )

end

function NpcTele0()
	Talk( 1, "Would you like to return to Argent City?" )
	Text( 1, "Return", JumpPage, 2 )

	InitTrigger()
	TriggerCondition( 1, HasMoney, 5000 )
	TriggerAction( 1, TakeMoney, 5000 )
	TriggerAction( 1, MoveCity, "Argent City" )
	TriggerFailure( 1, JumpPage, 3 )
	Talk( 2, "Return to Argent City?? No problem! Please pay 5000G!" )
	Text( 2, "Teleport",MultiTrigger, GetMultiTrigger(), 1 ) 
	Text( 2, CancelSelectTalk, JumpPage , CancelSelectPage )

	Talk( 3, "Sorry! You do not have enough gold to teleport." )

end

These above are the most known/common ones than im awared of.


2)Creating new item?
What kind of item, there are many kind, just reply with what u kind of new item (money bag, chest for items, and potion, etc)

Edited by DangThao

Share this post


Link to post
Share on other sites

Note:
NpcTele - This npc will teleport directly with the assigned coordinates


NpcTele1 - It uses normal teleporter like NPC Teleporter Jovial and some other with a whole list of maps and then use coordinate from it


Npctele0 - If a map got multiple coordinate to spawn like Argent City, Shaitan City, icicle city and etc, this is a nice idea cause it will random spawn players to assigned coordinates in birth_conf that used the same map.

Share this post


Link to post
Share on other sites

@DangThao Thank u this really helps 

 

2- )Creating new item?
What kind of item, there are many kind, just reply with what u kind of new item (money bag, chest for items, and potion, etc)

 

 i want make a cloak 

 

give me the steps for do it if u can 

 

another question i want open a 2 main maps like ici and Argent but i can`t 

i tryed many time to do them on diffrent Gameserver ete Gameserver1 Gamerserver2

and if i do them on 1 gameserver i got error any help about this too :) ill be thank ful Good Day 

 

 

Share this post


Link to post
Share on other sites
8 minutes ago, AnaMutaz said:

@DangThao Thank u this really helps 

 

2- )Creating new item?
What kind of item, there are many kind, just reply with what u kind of new item (money bag, chest for items, and potion, etc)

 

 i want make a cloak 

 

give me the steps for do it if u can 

 

another question i want open a 2 main maps like ici and Argent but i can`t 

i tryed many time to do them on diffrent Gameserver ete Gameserver1 Gamerserver2

and if i do them on 1 gameserver i got error any help about this too :) ill be thank ful Good Day 

 

 

Not a fan of Cloak stuff so cant help you. @KONG bro, any helps here? not a fan of it so idk, maybe u can help this guy.

Install the second main map (if first main map = garner (argent) then second main map will be darkblue(Icic)) on another gameserver.cfg. When done with change ip, user and pass of the cfg to ur working one, use server launcher.exe if u got inside server file (most file should have it). From there just click on gameserver2 and it will launch the second gameserver. Hope this helps.

  • Like 1

Share this post


Link to post
Share on other sites
8 minutes ago, DangThao said:

Not a fan of Cloak stuff so cant help you. @KONG bro, any helps here? not a fan of it so idk, maybe u can help this guy.

Install the second main map (if first main map = garner (argent) then second main map will be darkblue(Icic)) on another gameserver.cfg. When done with change ip, user and pass of the cfg to ur working one, use server launcher.exe if u got inside server file (most file should have it). From there just click on gameserver2 and it will launch the second gameserver. Hope this helps.

 

Yeh i understand now why i dont get the maps on 

i got the luncher. But always i use the double click directly on files 

 

so after i edit on the 2nd gameserver i need to lunch gameserver2 and my problem will get fixed ?? I think that thx alot 

 

if u can give me an example for how to make chest of somthing so i can search there and ill folined out the way of cloak 

 

thanks againe 

Share this post


Link to post
Share on other sites

Hello. For Cloak installation,

please allow yourself to install it - and post here if bugs occur. 

Let us know if you need any help with anything. 

 

P.S. Get your hands dirty, this is the only good way to know the serverfiles. 


kong.png

a2.png

Share this post


Link to post
Share on other sites
On 8/10/2017 at 11:50 PM, DangThao said:



1) NPC Teleporter:


function NpcTele ()
	Talk( 1, "Would you like to teleport to Heaven?" )
	Text( 1, "Teleport to Heaven", JumpPage, 5 )

	Talk( 5, "Are you sure you want to teleport to heaven?" )
	Text( 5, "Teleport", GoTo, 1749, 908, "jialebi" )

end


function NpcTele1()

	--È¡Ïû´«ËÍ·µ»ØÑ¡Ôñ´«Ë͵صãµÄ¶Ô»°ÄÚÈݺÍÒ³Ãæ±àºÅ
	local ReSelectTalk = "I need to reconsider¡­"
	local ReSelectPage = 1

	--È¡Ïû´«ËͺÍÍ˳ö´«Ë͵ĶԻ°ºÍÒ³Ãæ±àºÅ
	local CancelSelectTalk = "Forget it¡­I will stay here"
	local CancelSelectPage = 2

	--µØͼÃû³ÆÐÅÏ¢
	local CurMapName1 = "garner"

	--°×ÒøÖ®³Ç×ø±ê
	local GoTo01X = 2231
	local GoTo01Y = 2788
	local GoTo01M = CurMapName1

	Talk( 1, "Jovial: Hi! I am the Teleporter! How may I help you?" )
	Text( 1, "Go to Argent City!", JumpPage, 4 )

	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 4, "Teleports to Argent City? No problem! Please pay 500G. Free for players Lv 10 and below!" )
	Text( 4, "Teleport",MultiTrigger, GetMultiTrigger(), 2 ) 
	Text( 4, CancelSelectTalk, JumpPage , CancelSelectPage )

end

function NpcTele0()
	Talk( 1, "Would you like to return to Argent City?" )
	Text( 1, "Return", JumpPage, 2 )

	InitTrigger()
	TriggerCondition( 1, HasMoney, 5000 )
	TriggerAction( 1, TakeMoney, 5000 )
	TriggerAction( 1, MoveCity, "Argent City" )
	TriggerFailure( 1, JumpPage, 3 )
	Talk( 2, "Return to Argent City?? No problem! Please pay 5000G!" )
	Text( 2, "Teleport",MultiTrigger, GetMultiTrigger(), 1 ) 
	Text( 2, CancelSelectTalk, JumpPage , CancelSelectPage )

	Talk( 3, "Sorry! You do not have enough gold to teleport." )

end

 

Urgently question, somehow all my NPC teleporter that using GoTo script giving me an error... while my NPC teleporter that using MoveCity script work just find (also ticketing)

how to fix this matter?

Share this post


Link to post
Share on other sites
6 hours ago, opexone78 said:

Urgently question, somehow all my NPC teleporter that using GoTo script giving me an error... while my NPC teleporter that using MoveCity script work just find (also ticketing)

how to fix this matter?

Post your script here.

Share this post


Link to post
Share on other sites

sure.. here one of them

--------------------------------------
--Black Dragon Lair 1: Guardian Statue
--------------------------------------

function b_talk21()

	local ReSelectTalk = "I need to reconsider."
	local ReSelectPage = 1

	local CancelSelectTalk = "Forget it, I will stay here"
	local CancelSelectPage = 5

	--Map
	local CurMapName = "eastgoaf"

	--Coordinate
	local GoTo01X = 767
	local GoTo01Y = 602
	local GoTo01M = CurMapName

	Talk( 1, "Guardian Statue: \"I am the Goddess that sealed Death within.\"" )
	Text( 1, "Go to Black Dragon Lair 2!", JumpPage, 2 )

	InitTrigger()
	TriggerCondition( 1, HasItem, 179,1 )
	TriggerCondition( 1, HasItem, 3084,1 )
	TriggerCondition( 1, HasItem, 3085,1 )
	TriggerAction( 1, TakeItem, 179,1 )
	TriggerAction( 1, TakeItem, 3084,1 )
	TriggerAction( 1, TakeItem, 3085,1 )
	TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerFailure( 1, JumpPage, 4 )
	Talk( 2, "Teleport to Black Dragon Lair 2 requires 1<ySigil of Anubis>, 1 <yMask of Mummy King> and 1 <yTimeless Machine>!" )
	Text( 2, "Teleport",MultiTrigger, GetMultiTrigger(), 2 ) 
	Text( 2, CancelSelectTalk, JumpPage , CancelSelectPage )
	
	Talk( 3, "Guardian Statue: \"¡­¡­¡­¡­¡­¡­^$&#&^%¡­¡­¡­¡­¡­¡­\"" )

	InitTrigger()
	TriggerCondition( 1, HasRecord, 330 )
	TriggerAction( 1, JumpPage, 1 )
	TriggerCondition( 2, NoRecord, 330 )
	TriggerAction( 2, JumpPage, 3 )
	Start( GetMultiTrigger(), 3 )

	Talk( 4, "Sorry, you have not collect all 3 items!" )

	Talk( 5, "Remember to look for me again if you need to teleport", CloseTalk )

end

 

Share this post


Link to post
Share on other sites
On 5/16/2018 at 6:24 AM, opexone78 said:

anyone? help? pliss?

 

Hi, the script you posted is the exact script for teleporting to BD lair 2. It works correctly, the error should be somewhere else. What error exactly are you getting?

Share this post


Link to post
Share on other sites

all teleporter using TriggerAction goto error, can't teleport... so almost 75% NPC teleporter i had change into ticket system

the wierd thing is, the ticket using goto to teleport working well

Share this post


Link to post
Share on other sites
15 часов назад, opexone78 сказал:

all teleporter using TriggerAction goto error, can't teleport... so almost 75% NPC teleporter i had change into ticket system

the wierd thing is, the ticket using goto to teleport working well

so even default tp-npc didnt work?

if you want to learn how to make any npc - found npc's with same functions(sale,tp,trade,appareals) and copy it with your conditions

*****

Open resource/script/MisSdk/MissionSdk.lua

 

ctrl+f "SetProfession then"

and after "end" (and befotre next "elseif") paste this 
 

		elseif actions[i].func == GoTo then
			PRINT( "ActionsProc:GoTo, p1 = , p2 = , p3 = ", actions[i].p1, actions[i].p2, actions[i].p3 )
			local ret = GoTo( character, actions[i].p1, actions[i].p2, actions[i].p3 )
			PRINT( "Goto: ret = ", ret )
			if ret ~= LUA_TRUE then
				PRINT( "ActionsProc:GoTo Не удалось!" )
				SystemNotice( character, "ActionsProc:GoTo Не удалось!" )
				return LUA_FALSE
			end

I hope it help you

  • Like 1

Share this post


Link to post
Share on other sites
Just now, RedMAN said:

so even default tp-npc didnt work?

if you want to learn how to make any npc - found npc's with same functions(sale,tp,trade,appareals) and copy it with your conditions

*****

Open resource/script/MisSdk/MissionSdk.lua

 

ctrl+f "SetProfession then"

and after "end" (and befotre next "elseif") paste this 
 


		elseif actions[i].func == GoTo then
			PRINT( "ActionsProc:GoTo, p1 = , p2 = , p3 = ", actions[i].p1, actions[i].p2, actions[i].p3 )
			local ret = GoTo( character, actions[i].p1, actions[i].p2, actions[i].p3 )
			PRINT( "Goto: ret = ", ret )
			if ret ~= LUA_TRUE then
				PRINT( "ActionsProc:GoTo Не удалось!" )
				SystemNotice( character, "ActionsProc:GoTo Не удалось!" )
				return LUA_FALSE
			end

I hope it help you

thx bro... already check it, the script you wrote is already in my MissionSdk.lua but it in disable state... so i'll try to enable it... hope it work... thx again

Share this post


Link to post
Share on other sites

Hello, @opexone78!

 

You probably use modified server files. For example, with antidupe protection for teleportation. Try to take clean server files and test your teleport script again.


Share this post


Link to post
Share on other sites
On 5/25/2018 at 8:26 PM, V3ct0r said:

Hello, @opexone78!

 

You probably use modified server files. For example, with antidupe protection for teleportation. Try to take clean server files and test your teleport script again.

thx boss for the advise

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.

Sign in to follow this  

×
×
  • Create New...