Jump to content
Sign in to follow this  
saa0d

Multiple Teleporters not working

Recommended Posts

Hello guys, so I found out on my server that multiple teleporter npcs aren't working. They are similar in type. The Teleporters not working I found are: blackdragon lair tele, abbaddon tele, abbadon warden tele, goddess's teleportation function.

I checked the server files and nothing seems wrong. I also tried replacing the whole tele function from clean files and didn't work either. What I figured is that any function in the lua files that uses "GoTo" doesn't work. For example:

local CurMapName = "jialebi"
	local GoTo01X = 70
	local GoTo01Y = 952
	local GoTo01M = CurMapName
	local GoTo02X = 690
	local GoTo02Y = 1043
	local GoTo02M = CurMapName
InitTrigger()
	TriggerCondition(1,HasMoney,5000)
	TriggerAction(1,TakeMoney,5000)
	TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerFailure( 1, JumpPage, 4 )
	Talk( 2, "Go to Abaddon 3?" )
	Text( 2, "Yes! Go to Abaddon 3!", MultiTrigger, GetMultiTrigger(), 1 )

I tried replacing GoTo with Move or ChaMove but no luck. Any help please? Thanks

Share this post


Link to post
Share on other sites
7 hours ago, saa0d said:

function abb3_talk()
	Talk( 1, "Go to Abaddon 3?" )

	InitTrigger()
	TriggerAction( 1, GoTo, 690, 1043, "jialebi" )
	Text( 1, "Yes! Go to Abaddon 3!", MultiTrigger, GetMultiTrigger(), 1 )
	
end


--or you can use this
TriggerAction( 1, MoveCity, "Abaddon 3" )


--add in birth_conf.lua
AddBirthPoint("Abaddon 3", "jialebi", 690, 1043)

you want something like this?

 

 

 

Edited by Onioni

Download: Nightmare Demonic Helm

Dimension Pirates Online files: get now

New map Project: Flag PK

Black Skin 3.1.3 for pko 1: Get now

Share this post


Link to post
Share on other sites
3 hours ago, Onioni said:

 

No, I want to fix the problem. I don't know why any npc that uses GoTo doesn't work. What is the reason?! I don't want to move city, I just want to move the char in the same map and GoTo doesn't work

Share this post


Link to post
Share on other sites

Hello. I believe I must pm you later on skype. Please give me some moment.

 

regarding your problem, in the past many server files use hooks to do some teleportation delay with goto and movecity.

 

i believe that your issue is because of that. Try to look into the missdk/*sdk.lua files, and search GoTo. I believe you will see slight changes from that of a clean file. 


kong.png

a2.png

Share this post


Link to post
Share on other sites
On 8/15/2017 at 4:14 PM, KONG said:

Hello. I believe I must pm you later on skype. Please give me some moment.

 

regarding your problem, in the past many server files use hooks to do some teleportation delay with goto and movecity.

 

i believe that your issue is because of that. Try to look into the missdk/*sdk.lua files, and search GoTo. I believe you will see slight changes from that of a clean file. 

Thanks for guiding, I found some commented code in the missionsdk which was the goto function.

P.S: I'm still waiting for u at skype...

Edited by saa0d

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