Register for your free account! | Forgot your password?

You last visited: Today at 04:00

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

Advertisement



GM-Tool and NPC

Discussion on GM-Tool and NPC within the Rappelz Private Server forum part of the Rappelz category.

Closed Thread
 
Old 04/08/2013, 01:17   #46
 
.Jenna.'s Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Problem!!! I click on the NPC and nothing (
.Jenna. is offline  
Old 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
cs189 is offline  
Old 04/08/2013, 01:29   #48
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
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)
ThunderNikk is offline  
Old 04/08/2013, 01:32   #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#.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
cs189 is offline  
Old 04/08/2013, 01:37   #50
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
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 04/08/2013, 01:58   #51
 
.Jenna.'s Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Still nothing
.Jenna. is offline  
Old 04/08/2013, 02:01   #52
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
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 04/08/2013, 02:13   #53
 
.Jenna.'s Avatar
 
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 04/08/2013, 02:21   #54
Moderator


 
ThunderNikk's Avatar
 
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
ThunderNikk is offline  
Old 04/08/2013, 02:24   #55
 
.Jenna.'s Avatar
 
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 04/08/2013, 02:30   #56
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
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 04/08/2013, 02:44   #57
 
.Jenna.'s Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
Nop nothing working
.Jenna. is offline  
Old 04/08/2013, 02:45   #58
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,918
Received Thanks: 1,492
Well I give up then, good luck to ya.
ThunderNikk is offline  
Old 04/08/2013, 02:46   #59
 
.Jenna.'s Avatar
 
elite*gold: 0
Join Date: Apr 2013
Posts: 62
Received Thanks: 1
LOL you always give uo do you
.Jenna. is offline  
Old 04/08/2013, 03:07   #60
 
Thelxinoe's Avatar
 
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
Thelxinoe is offline  
Closed Thread




All times are GMT +1. The time now is 04:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.