GM-Tool and NPC

04/08/2013 01:17 .Jenna.#46
Problem!!! I click on the NPC and nothing :((
04/08/2013 01:22 cs189#47
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
04/08/2013 01:29 ThunderNikk#48
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#.E@Ip8bH5pr

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)
04/08/2013 01:32 cs189#49
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#.E@Ip8bH5pr

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
04/08/2013 01:37 ThunderNikk#50
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)?
04/08/2013 01:58 .Jenna.#51
Still nothing
04/08/2013 02:01 ThunderNikk#52
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()
04/08/2013 02:13 .Jenna.#53
do we have to put the buffs somewhere on SQL?

cose its still not working... for anything

cose its still not working... for anything
04/08/2013 02:21 ThunderNikk#54
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
04/08/2013 02:24 .Jenna.#55
and yes i did that

Yes that's what i did
04/08/2013 02:30 ThunderNikk#56
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.
04/08/2013 02:44 .Jenna.#57
Nop nothing working
04/08/2013 02:45 ThunderNikk#58
Well I give up then, good luck to ya.
04/08/2013 02:46 .Jenna.#59
LOL you always give uo do you
04/08/2013 03:07 Thelxinoe#60
.Jenna. pm me your Skype i'll give you some files to help you a little

request close problem solved