[Help Thread] Please post your questions here.

01/19/2012 12:16 mega_TR_on#136
I'm opened game but when I try to connect server it gives me this error how can I fix it pls help! :(


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


Authserver.opt

S db.auth.server:5.181.174.232
S db.auth.name:Auth
S db.auth.account:sa
S db.auth._password:
S app.name:CodingHard
S log.ip:5.181.174.232
S db.auth.port:1433
N db.auth.use_webauth:0
N db.auth.use_md5:1
N db.auth.debug_md5:0
N db.auth.md5_key:2011

GameServer.opt

S app.name:game001
S auth.server_idx:1
S auth.server_name:CodingHard
S db.game.ip:5.181.174.232
S db.c._password:
S db.c.account:sa
S db.c.name:Arcadia
S db.c.server:5.181.174.232
S db.user._password:
S db.user.account:sa
S db.user.name:Telecaster
S db.user.server:5.181.174.232
S game.iocp.active:1
S game.console.port:4502
S io.port:6686
S io.ip_address:5.181.174.232
S blank.io.port:4502
S game.server_screenshot_url:
S game.guild_icon_base_url:
S log.disable:1
S log.working:0
S game.exp_rate:25
S game.item_drop_rate:40
S game.gold_drop_rate:50
S game.chaos_drop_rate:50
S game.party_drop_rate:40
T game.use_login_logout_debug:0
T game.max_level:180
T game.use_auto_trap:0
T game.cash_usable_server:1
T game.no_collision_check:1
T game.no_skill_cooltime:0
T game.disable_huntaholic:0
N game.logout_timer:0
S memory.player_heap_size:760
T game.mem_usage_info_save_interval:60
T game.PKServer:0
N game.item_hold_time:1800
S game.cash_item_dropable:0
T game.disable_dungeon_raid_siege:0
T game.limit_dungeon_enterable_level:0
T game.max_storage_item_count:400
T set_user_limit:100
N game.skip_loading_attribute:1
01/20/2012 19:45 arrtin#137
Hi

i have Problem with Gold ...

i set ( GameServer.opt )

Quote:
S game.gold_drop_rate:1000


And i just See: [Only registered and activated users can see links. Click Here To Register...]

what this problem !! Really it is worth debating the subject ..
01/20/2012 21:04 Masada0#138
Quote:
Originally Posted by arrtin View Post
Hi

i have Problem with Gold ...

i set ( GameServer.opt )



And i just See: [Only registered and activated users can see links. Click Here To Register...]

what this problem !! Really it is worth debating the subject ..
This will help you. Use this in SQL.
Sorry for my bad English.

Code:
UPDATE [Arcadia].[dbo].[MonsterResource]
SET [gold_drop_percentage] = 100 --> this will drop gold always
GO

UPDATE [Arcadia].[dbo].[MonsterResource]
SET [gold_min] = [gold_min] * 100 --> this will multiply minimum gold amount by 100,, so you will get 100x more gold at minimum value
GO

UPDATE [Arcadia].[dbo].[MonsterResource]
SET [gold_max] = [gold_max] * 100 --> same as above,,, but max gold will be multiplied by 100
GO

UPDATE [Arcadia].[dbo].[MonsterResource]
SET [gold_min_2] = [gold_min_2] * 100 --> same as above
GO

UPDATE [Arcadia].[dbo].[MonsterResource]
SET [gold_max_2] = [gold_max_2] * 100 --> same as above
GO
01/20/2012 22:57 arrtin#139
erorr :
Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type int.
The statement has been terminated.
01/21/2012 14:23 haxti#140
just put some lower than *100
01/23/2012 13:41 Gold.D.Marko#141
How I Get Cube Skill Full And Job 3 Full Skill
01/23/2012 14:31 haxti#142
Quote:
Originally Posted by Gold.D.Marko View Post
How I Get Cube Skill Full And Job 3 Full Skill
[Only registered and activated users can see links. Click Here To Register...]
01/24/2012 03:53 jaylen14#143
Umhm... How do you Post your Own Thread, I can't seem to figure it Out.
01/24/2012 15:04 haxti#144
Quote:
Originally Posted by jaylen14 View Post
Umhm... How do you Post your Own Thread, I can't seem to figure it Out.
"New Topic"
01/25/2012 08:20 boballen#145
I have two things i was hoping to get some help with.

1.I want to have two different servers, i am able to get both of them to show on the server select screen. But this is my issue if i launch server A first i can only log in on server A and if i launch server B first i can only log in on server B. what can i do to fix this issue?

2.My world buffs are on potions which i am able to get to work great. but i would like to do them up by rank and having issues figuring out the right way to write the .lua any help would be great


Here is what ive tried for the buff to be done by rank

function get_module_name()
return "worldbuffs"
end

function worldbuffs()

local lv = get_value("level")

if get_value( "lv" ) >= 20 and lv <= 49 then
add_state(1001, 5, 8640000)
add_state(1002, 5, 8640000)
add_state(1011, 5, 8640000)
add_state(1013, 5, 8640000)
add_state(1012, 5, 8640000)
add_state(1014, 5, 8640000)
add_state(1016, 5, 8640000)
add_state(1007, 5, 8640000)
add_state(1008, 5, 8640000)
add_state(1009, 5, 8640000)
add_state(1015, 5, 8640000)

if get_value( "lv" ) >= 50 and lv <= 79 then
add_state(1001, 10, 8640000)
add_state(1002, 10, 8640000)
add_state(1011, 10, 8640000)
add_state(1013, 10, 8640000)
add_state(1012, 10, 8640000)
add_state(1014, 10, 8640000)
add_state(1016, 10, 8640000)
add_state(1007, 10, 8640000)
add_state(1008, 10, 8640000)
add_state(1009, 10, 8640000)
add_state(1015, 10, 8640000)

if get_value( "lv" ) >= 80 and lv <= 120 then
add_state(1001, 20, 8640000)
add_state(1002, 20, 8640000)
add_state(1011, 20, 8640000)
add_state(1013, 20, 8640000)
add_state(1012, 20, 8640000)
add_state(1014, 20, 8640000)
add_state(1016, 20, 8640000)
add_state(1007, 20, 8640000)
add_state(1008, 20, 8640000)
add_state(1009, 20, 8640000)
add_state(1015, 20, 8640000)

end
01/25/2012 12:52 falkenman#146
Wie krieg ich den Volcanus Boss angezeigt ? =D need kleine hilfe pls =D
01/25/2012 13:13 haxti#147
Quote:
Originally Posted by boballen View Post
I have two things i was hoping to get some help with.

1.I want to have two different servers, i am able to get both of them to show on the server select screen. But this is my issue if i launch server A first i can only log in on server A and if i launch server B first i can only log in on server B. what can i do to fix this issue?

2.My world buffs are on potions which i am able to get to work great. but i would like to do them up by rank and having issues figuring out the right way to write the .lua any help would be great


Here is what ive tried for the buff to be done by rank

function get_module_name()
return "worldbuffs"
end

function worldbuffs()

local lv = get_value("level")

if get_value( "lv" ) >= 20 and lv <= 49 then
add_state(1001, 5, 8640000)
add_state(1002, 5, 8640000)
add_state(1011, 5, 8640000)
add_state(1013, 5, 8640000)
add_state(1012, 5, 8640000)
add_state(1014, 5, 8640000)
add_state(1016, 5, 8640000)
add_state(1007, 5, 8640000)
add_state(1008, 5, 8640000)
add_state(1009, 5, 8640000)
add_state(1015, 5, 8640000)

if get_value( "lv" ) >= 50 and lv <= 79 then
add_state(1001, 10, 8640000)
add_state(1002, 10, 8640000)
add_state(1011, 10, 8640000)
add_state(1013, 10, 8640000)
add_state(1012, 10, 8640000)
add_state(1014, 10, 8640000)
add_state(1016, 10, 8640000)
add_state(1007, 10, 8640000)
add_state(1008, 10, 8640000)
add_state(1009, 10, 8640000)
add_state(1015, 10, 8640000)

if get_value( "lv" ) >= 80 and lv <= 120 then
add_state(1001, 20, 8640000)
add_state(1002, 20, 8640000)
add_state(1011, 20, 8640000)
add_state(1013, 20, 8640000)
add_state(1012, 20, 8640000)
add_state(1014, 20, 8640000)
add_state(1016, 20, 8640000)
add_state(1007, 20, 8640000)
add_state(1008, 20, 8640000)
add_state(1009, 20, 8640000)
add_state(1015, 20, 8640000)

end

Those Levelbased Buff need to be in the on_level_up.lua and the on_login.lua. Otherwise there is no trigger.

Concerning those 2 Servers. I changed the server id and the console.port and game.port to another value on the second server. just set the id to 3 and change the portnumbers like +1 or +20 or something. this should work.
You need another copy of the arcadia and the telecaster at least!

Quote:
Originally Posted by falkenman View Post
Wie krieg ich den Volcanus Boss angezeigt ? =D need kleine hilfe pls =D
Wurde hier iwo mal released meines wissens.
01/25/2012 14:48 falkenman#148
Wurde hier iwo mal released meines wissens.[/QUOTE]

Ja ..und das release geht ned -.- .. wird net angezeigt. beispiel astarot.
nur name rest unsichtbar.
01/25/2012 16:27 boballen#149
Quote:
Originally Posted by haxti View Post
Those Levelbased Buff need to be in the on_level_up.lua and the on_login.lua. Otherwise there is no trigger.
the trigger is the contact script worldbuffs() when i use the potion.


Also thank you 2nd server working great now. knew it was something simple i was just over looking
01/25/2012 16:48 haxti#150
Quote:
Originally Posted by boballen View Post
the trigger is the contact script worldbuffs() when i use the potion.


Also thank you 2nd server working great now. knew it was something simple i was just over looking
your welcome.


Well i just looked at your code and the gameserver should have thrown up tons of error messages.

i will show you whats wrong with this block, and you should adapt those changes to the other blocks aswell:

Code:
if get_value( "lv" ) >= 20 and lv <= 49 then
add_state(1001, 5, 8640000)
add_state(1002, 5, 8640000)
add_state(1011, 5, 8640000)
add_state(1013, 5, 8640000)
add_state(1012, 5, 8640000)
add_state(1014, 5, 8640000)
add_state(1016, 5, 8640000)
add_state(1007, 5, 8640000)
add_state(1008, 5, 8640000)
add_state(1009, 5, 8640000)
add_state(1015, 5, 8640000)
Change to:
Code:
if lv >= 20 and lv <= 49 then
add_state(1001, 5, 8640000)
add_state(1002, 5, 8640000)
add_state(1011, 5, 8640000)
add_state(1013, 5, 8640000)
add_state(1012, 5, 8640000)
add_state(1014, 5, 8640000)
add_state(1016, 5, 8640000)
add_state(1007, 5, 8640000)
add_state(1008, 5, 8640000)
add_state(1009, 5, 8640000)
add_state(1015, 5, 8640000)
end
So first of all: why are you using get_value("lv"), while you already have set lv = get_value("lv") ? just change this to lv aswell.

secondly: All If funktions have to be terminated with end in lua.

like:

if lv == 5 then
message("You are Level 5 now.")
end