|
You last visited: Today at 07:10
Advertisement
GM-Tool and NPC
Discussion on GM-Tool and NPC within the Rappelz Private Server forum part of the Rappelz category.
04/08/2013, 01:17
|
#46
|
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
|
Problem!!! I click on the NPC and nothing  (
|
|
|
04/08/2013, 01:22
|
#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
|
|
|
04/08/2013, 01:29
|
#48
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
Quote:
Originally Posted by .Jenna.
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
|
#49
|
elite*gold: 0
Join Date: Sep 2011
Posts: 52
Received Thanks: 2
|
Quote:
Originally Posted by thndr
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
|
#50
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
Quote:
Originally Posted by cs189
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
|
#51
|
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
|
Still nothing
|
|
|
04/08/2013, 02:01
|
#52
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
Quoting an unwise profit
Quote:
Originally Posted by thndr
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
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
|
#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
|
|
|
04/08/2013, 02:21
|
#54
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
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
|
#55
|
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
|
and yes i did that
Yes that's what i did
|
|
|
04/08/2013, 02:30
|
#56
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
Quote:
Originally Posted by .Jenna.
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
|
#57
|
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
|
Nop nothing working
|
|
|
04/08/2013, 02:45
|
#58
|
Moderator
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
|
Well I give up then, good luck to ya.
|
|
|
04/08/2013, 02:46
|
#59
|
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
|
LOL you always give uo do you
|
|
|
04/08/2013, 03:07
|
#60
|
elite*gold: 0
Join Date: Apr 2013
Posts: 75
Received Thanks: 16
|
.Jenna. pm me your Skype i'll give you some files to help you a little
request close problem solved
|
|
|
All times are GMT +1. The time now is 07:11.
|
|