Register for your free account! | Forgot your password?

You last visited: Today at 09:15

  • Please register to post and access all features, it's quick, easy and FREE!

 

GM-Tool and NPC

Closed Thread
 
Old   #46
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Problem!!! I click on the NPC and nothing (



.Jenna. is offline  
Old   #47
 
elite*gold: 0
Join Date: Sep 2011
Posts: 52
Received Thanks: 2
ah yes sorry i forgot dlg text
--- Lua 스크립트 암호
function test_buff_contact()
dlg_title("test")
dlg_text("buffs")
dlg_menu("buffs","buffs()")
end
function buffs()
add_state(1013,25)
add_state(1007,25)
add_state(1008,25)
add_state(1002,25)
add_state(1001,25)
end
the right code
sorry
edit lua only


cs189 is offline  
Old   #48
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Quote:
Originally Posted by .Jenna. View Post
Problem!!! I click on the NPC and nothing (
So you have added this NPC to your Arcadia database dbo.NPCResource, and saved the dbo.NPCResource to a db_npcresource(ascii).rdb for the client resource folder, hashed the name to {T%xMK%GJJ2x-SL53SGYBZ{Hd#[email protected]

And it does not work?

Maybe you should just try the server init thing again but use my buff scripts and see what happens on server init.

(Don't forget you need to restart your servers)
ThunderNikk is offline  
Old   #49
 
elite*gold: 0
Join Date: Sep 2011
Posts: 52
Received Thanks: 2
Quote:
Originally Posted by thndr View Post
So you have added this NPC to your Arcadia database dbo.NPCResource, and saved the dbo.NPCResource to a db_npcresource(ascii).rdb for the client resource folder, hashed the name to {T%xMK%GJJ2x-SL53SGYBZ{Hd#[email protected]

And it does not work?

Maybe you should just try the server init thing again but use my buff scripts and see what happens on server init.

(Don't forget you need to restart your servers)
npc dont need to resource it
it will appear anyway


cs189 is offline  
Old   #50
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Quote:
Originally Posted by cs189 View Post
npc dont need to resource it
it will appear anyway
OK but you are adding an add_event_state (buff,level) server event buff as an...

add_state (buff,level)

for add_state don't you need add_state (buff,level,duration)?
ThunderNikk is offline  
Old   #51
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Still nothing
.Jenna. is offline  
Old   #52
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Quoting an unwise profit

Quote:
Originally Posted by thndr View Post
Maybe you should just try the server init thing again but use my buff scripts and see what happens on server init.

(Don't forget you need to restart your servers)
Just curious when you put this in...

Quote:
Originally Posted by cs189 View Post
USE Arcadia
GO
INSERT INTO [NPCResource] VALUES (9977,100011401,105011401,99,2,location x,location y,0,280,0,'false','2000-01-01 00:00:00.000','2100-01-01 00:00:00.000',3,-3,16,'demon_baphometLv3',0,0,250003,0,0,0,0,303302 ,304501,0,0,413100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'your npc contact script from lua',-1,0);
go
Did you change this...

'your npc contact script from lua'

to this...

test_buff_contact()
ThunderNikk is offline  
Old   #53
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
do we have to put the buffs somewhere on SQL?

cose its still not working... for anything

cose its still not working... for anything
.Jenna. is offline  
Old   #54
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Nope the event states I gave you are already in the database.

But you do need to add them to server_init.lua just as they were given...

Code:
function on_server_init()
	roaming()
	rare_mob()
	guardian_spawn()
	random_respawn()
	buffs()		
end

function buffs()
         add_event_state(1013,20)
         add_event_state(1007,15)
         add_event_state(1008,15)
         add_event_state(1002,10)
         add_event_state(1001,10)
end
ThunderNikk is offline  
Old   #55
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
and yes i did that

Yes that's what i did
.Jenna. is offline  
Old   #56
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Quote:
Originally Posted by .Jenna. View Post
and yes i did that
Then saved it and restarted all of your servers.

Because that is exactly the script I have in mine and I have buffs when I log in.

Well almost exactly what I have...

Code:
function on_server_init()
	roaming()
	rare_mob()
	guardian_spawn()
	random_respawn()
	PandoraServerBuff()
end

function PandoraServerBuff()
add_event_state(1013,20)
add_event_state(1007,15)
add_event_state(1008,15)
add_event_state(1002,10)
add_event_state(1001,10)
end
Plus all the stuff in the middle.

See the only thing different is what I have named my buff function and mine buffs me.

Let me take a wild stab at something.

What are you editing your files with?

Maybe notepad or wordpad?

Did you change your folder options on your computer? Specifically the one for "Hide extensions for known file types" and turn that off?

There is a possiblility that you are saving your .lua file as a plain text file.

So you get
b4e51c7c6f9cd671cf2bb33b2aa2d263.lua.txt but dont see the .txt making it a useless .lua file but you will not know until you check your mob spawns.
ThunderNikk is offline  
Old   #57
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Nop nothing working
.Jenna. is offline  
Old   #58
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,004
Received Thanks: 958
Well I give up then, good luck to ya.
ThunderNikk is offline  
Old   #59
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
LOL you always give uo do you
.Jenna. is offline  
Old   #60
 
elite*gold: 0
Join Date: Apr 2013
Posts: 73
Received Thanks: 16
.Jenna. pm me your Skype i'll give you some files to help you a little

request close problem solved


Thelxinoe is offline  
Closed Thread



« Previous Thread | Next Thread »



All times are GMT +2. The time now is 09:15.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.