[Release] Heaven's Bazaar

05/12/2013 03:00 HeavenOnlyWishes#1
Heaven's Bazaar



Before we get on with this "tell all", let me first say, I do not and will not give support for any of the releases from other developers nor the server files themselves. If you have questions pertaining to either of those two items, please ask the person who developed them. I will however answer any questions that pertain to modification of the databases or any lua scripting questions. I will continue to update this when I have the free time. Updates will include all of my stuff, SQL related and scripts that I had released in the past and any that I decide to make in the future. Many of the things listed here are all based on queries and scripts I designed ages ago, if you weren't around back then, then please save your complaints for someone who cares.

Please note that the following is based on the most current server files (8.1), older versions of the server files may have difficulty operating, unless listed as backwards compatible.

The following will be documented and fully tutorial-ed for your convenience.


SQL Queries:

These queries are designed to help you sift through the massive databases to help find specific articles.

Step 1) Open MSSQL and login.
Step 2) Select New Query from the top menu.
Step 3) Copy and Paste one of the following into the New Query window.
Step 4) Click Execute from the top menu.



LUA Scripts:

The following scripts are my own personal creations, as such anyone can use them, however, I only ask that you give me credit when you do.



Tid-Bits:

This is just a few things I found quite interesting, and thought you might be interested to know.

05/12/2013 12:42 Pyrochina#2
Hi! Thank you so much for these scripts. I just have a little question, what are the three codes of this: (Codes taken from Stage two)

add_state(164407--> Buff ID,500 --> ???,8640000--> ???) -- Halisha +1000
05/12/2013 14:32 ThunderNikk#3
Quote:
Originally Posted by Pyrochina View Post
Hi! Thank you so much for these scripts. I just have a little question, what are the three codes of this: (Codes taken from Stage two)

add_state(164407--> Buff ID,500 --> ???,8640000--> ???) -- Halisha +1000
Should be add_state(Buff_ID, Buff_Level, Buff_Duration)
05/12/2013 15:27 Pyrochina#4
Would this work instead?

add_event_state(Buff ID ,Buff Lvl)
05/12/2013 15:52 ThunderNikk#5
Quote:
Originally Posted by Pyrochina View Post
Would this work instead?

add_event_state(Buff ID ,Buff Lvl)
That should give a server wide buff as an event state it will effect everyone who logs on the same. No time duration.
05/12/2013 16:21 Pyrochina#6
That's what I want:) thndr can you go on the help thread i have question
05/12/2013 17:56 HeavenOnlyWishes#7
Yes, you can use the add_event_state() and remove_event_state() built in functions instead of add_state(); These scripts were designed before the add_event_state() function was built into the game system.

I'll make a new version of the Automated Buff System here soon that's made for the newest files soon. As well as a Buff NPC script, and post them.
05/23/2013 02:02 Pyrochina#8
Hi! I don't know if you could help me make a simple buff for everyone on log in buff script and set it up to work because none of these work for me. Contact me on Skepy ;)
05/23/2013 02:23 ThunderNikk#9
Add the following to server_init (b4e51c7c6f9cd671cf2bb33b2aa2d263).lua

At the top of the .lua script add this...

Code:
        ServerBuff()
In with what is already there...

Code:
function on_server_init()
	roaming()
	rare_mob()
	guardian_spawn()
	random_respawn()
end
So it looks like this...

Code:
function on_server_init()
	roaming()
	rare_mob()
	guardian_spawn()
	random_respawn()
        ServerBuff()
end
And at the bottom of the script add the buff function...

Code:
function ServerBuff()
        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
Restart your servers.

You can change the buffs and or buff levels all you want.
05/24/2013 01:25 HeavenOnlyWishes#10
Or you can just add the add_event_state() statements. LUA in Rappelz doesn't require you to setup a function to run most of it's built in methods. And since on_server_init() is already a setup function, you can just add the statements to that function... rather than using a stacked function.

So it would look like this:

Code:
function on_server_init()
	roaming()
	rare_mob()
	guardian_spawn()
	random_respawn()
        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
05/25/2013 13:35 muhaadiga#11
i just downloaded ABS Stage 3 Full for my 8.1 server i put the line on my own resource
as you said in instruction and i put the lua file but nothing works ?
05/25/2013 17:32 HeavenOnlyWishes#12
Again.... these systems were designed for 6.3/6.4.... not the 8.1 server files, I can't guarantee that they will work with current server versions. The timers certainly wont....

I'll release new ones that are updated for the 8.1 server files probably some time today.
05/25/2013 19:31 Raigeka#13
No your way is wrong
just do it like me

function get_module_name()
return "server_init"
end

function on_server_init()
roaming()
rare_mob()
guardian_spawn()
random_respawn()
ServerBuffs()
end

function ServerBuffs()
add_event_state(9948,10)
add_event_state(9947,5)
add_event_state(9946,5)
add_event_state(9945,1)
add_event_state(9944,1)
add_event_state(1101,99)
add_event_state(4553,1)
add_event_state(4003,1)
add_event_state(9923,1)
add_event_state(1013,40)
add_event_state(13423,350)
end

This work in my server 100%
05/25/2013 19:36 HeavenOnlyWishes#14
Again.... An unnecessary function.... I'm a professional programmer, and I've been programming with LUA for the past 3 years.... Don't tell me I'm wrong, when I'm the one with 64 Thanks....



P.S. Updated Bazaar btw
05/25/2013 19:48 ThunderNikk#15
Quote:
Originally Posted by HeavenOnlyWishes View Post
Again.... An unnecessary function.... I'm a professional programmer, and I've been programming with LUA for the past 3 years.... Don't tell me I'm wrong, when I'm the one with 64 Thanks....



P.S. Updated Bazaar btw
But your script does not work...

[Only registered and activated users can see links. Click Here To Register...]

according to Pyrochina at least, I did not try it myself but since mine is scripted and mine is working I really had no need to try.