This code I have altered is suppose to give a rupee lotto box every 5 levels and also give rupee bags everytime rank up. Doesn't seem to work anyone have an idea on what im missing?
This is what I have placed inside of the player_level_up lua:
Remove the modifications that you have made to your on_level.lua and open a new text document via InType or Notepad w/e you use.
Paste the following into the new text file:
Code:
function get_module_name()
return "on_level_prize"
end
function on_level_prize() -- This is the name of the function which we will call from our On_Login, On_Level and/or On_Death
lv = gv( "level" ) -- This defines LV as the value retrieved from the "lv" column in the database.
if lv > 4 and lv < 6 then -- this defines a range between 4 and 6 which is 5.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 5.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 9 and lv < 11 then -- this defines a range between 9 and 11 which is 10.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 10.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 19 and lv < 21 then -- this defines a range between 19 and 21 which is 20.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 20.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 29 and lv < 31 then -- this defines a range between 29 and 31 which is 30.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 30.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
end
end
That is an example of a set of triggers that work on a primary if and following elseif, that will disperse prizes based on level. You will need to add a call function to the desired lua's: (on_login, on_level, on_death) the name of the call trigger must be exactly the name of the function we pasted above: ( on_level_prize() <-- IMPORTANT: The brackets '()' must be included at the end of the call function name.)
An example of a call function is as follows:
on_player_level.lua example:
Code:
if is_auto then
if race == 4 then
RunTeleport_Auto_TO_City( 6625 , 6980 )
elseif race == 5 then
RunTeleport_Auto_TO_City( 116799 , 58205 )
else
RunTeleport_Auto_TO_City( 153506 , 77175 )
end
end -- if is_auto then
end -- if current_y >= 48384 and current_y <= 64512 then
end -- if current_x >= 161280 and current_x <= 177408 then
save()
-- ·¹º§¾÷ ´Þ¼º À̺¥Æ® ó¸®
-- ±¹°¡ ÄÚµå Àоî¿À±â
-- get_local_info()ÀÇ ¹Ýȯ°ªµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_GERMAN = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
--LOCAL_INFO_FRANCE = 128
--LOCAL_INFO_RUSSIA = 256
--LOCAL_INFO_MALAYSIA = 512
--LOCAL_INFO_SINGAPORE = 1024
--LOCAL_INFO_VIETNAM = 2048
--LOCAL_INFO_THAILAND = 4096
--LOCAL_INFO_MIDEAST = 8192
--LOCAL_INFO_TURKEY = 16384
--============================================================
-- <<<<<< [ABR] Auto Buff Remove: Start >>>>>>
--============================================================
permanentserverbuff_remove()
temporaryserverbuff_remove()
hv_pass_remove()
buff_under_20_remove()
buff_above_20_remove()
buff_above_50_remove()
buff_above_80_remove()
buff_above_100_remove()
buff_above_120_remove()
buff_above_150_remove()
buff_above_160_remove()
buff_at_170_remove()
buff_pet_below_100_remove()
buff_pet_above_100_remove()
permanentserverbuff_give()
temporaryserverbuff_give()
--============================================================
-- <<<<<< Auto Buff Remove: End >>>>>>
--============================================================
--============================================================
-- <<<<<< [ABG] Auto Buff Give: Start >>>>>>
--============================================================
hv_pass_give()
hv_ticket_give()
buff_under_20_give()
buff_above_20_give()
buff_above_50_give()
buff_above_80_give()
buff_above_100_give()
buff_above_120_give()
buff_above_150_give()
buff_above_160_give()
buff_at_170_give()
--============================================================
-- <<<<<< Auto Buff Give: End >>>>>>
--============================================================
--============================================================
-- <<<<<< Auto Buff 150-160 Set Effect: Start >>>>>>
--============================================================
--Original Credits to: MisterD and gr4ph0s
--Alteration Credits to: iSmokeDrow
--150 Set Bonus
trigger_effect_150_1()
trigger_effect_150_2()
trigger_effect_150_3()
trigger_effect_150_4()
--155 Set Bonus
trigger_effect_155_1()
trigger_effect_155_2()
trigger_effect_155_3()
trigger_effect_155_4()
--160 Set Bonus
trigger_effect_160_1()
trigger_effect_160_2()
trigger_effect_160_3()
trigger_effect_160_4()
--============================================================
-- <<<<<< Auto Buff 150-160 Set Effect: End >>>>>>
--============================================================
--============================================================
-- <<<<<< On_Login XP to GP Start >>>>>>
--============================================================
convert_xp_to_gen_point_lv5()
convert_xp_to_gen_point_lv10()
convert_xp_to_gen_point_lv15()
convert_xp_to_gen_point_lv20()
convert_xp_to_gen_point_lv25()
convert_xp_to_gen_point_lv30()
convert_xp_to_gen_point_lv40()
convert_xp_to_gen_point_lv60()
convert_xp_to_gen_point_lv80()
convert_xp_to_gen_point_lv100()
convert_xp_to_gen_point_lv120()
convert_xp_to_gen_point_lv140()
convert_xp_to_gen_point_lv150()
convert_xp_to_gen_point_lv155()
convert_xp_to_gen_point_lv160()
--============================================================
-- <<<<<< On_Login XP to GP END >>>>>>
--============================================================
local state_code = get_local_info()
Remove the modifications that you have made to your on_level.lua and open a new text document via InType or Notepad w/e you use.
Paste the following into the new text file:
Code:
function get_module_name()
return "on_level_prize"
end
function on_level_prize() -- This is the name of the function which we will call from our On_Login, On_Level and/or On_Death
lv = gv( "level" ) -- This defines LV as the value retrieved from the "lv" column in the database.
if lv > 4 and lv < 6 then -- this defines a range between 4 and 6 which is 5.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 5.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 9 and lv < 11 then -- this defines a range between 9 and 11 which is 10.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 10.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 19 and lv < 21 then -- this defines a range between 19 and 21 which is 20.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 20.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
elseif lv > 29 and lv < 31 then -- this defines a range between 29 and 31 which is 30.
insert_item(item id) -- This is where the actual level 5 prize is inserted if the player is level 30.
cprint("You have received a level up prize.") -- This is a message sent to the players chat screen.
end
end
That is an example of a set of triggers that work on a primary if and following elseif, that will disperse prizes based on level. You will need to add a call function to the desired lua's: (on_login, on_level, on_death) the name of the call trigger must be exactly the name of the function we pasted above: ( on_level_prize() <-- IMPORTANT: The brackets '()' must be included at the end of the call function name.)
An example of a call function is as follows:
on_player_level.lua example:
Code:
if is_auto then
if race == 4 then
RunTeleport_Auto_TO_City( 6625 , 6980 )
elseif race == 5 then
RunTeleport_Auto_TO_City( 116799 , 58205 )
else
RunTeleport_Auto_TO_City( 153506 , 77175 )
end
end -- if is_auto then
end -- if current_y >= 48384 and current_y <= 64512 then
end -- if current_x >= 161280 and current_x <= 177408 then
save()
-- ·¹º§¾÷ ´Þ¼º À̺¥Æ® ó¸®
-- ±¹°¡ ÄÚµå Àоî¿À±â
-- get_local_info()ÀÇ ¹Ýȯ°ªµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_GERMAN = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
--LOCAL_INFO_FRANCE = 128
--LOCAL_INFO_RUSSIA = 256
--LOCAL_INFO_MALAYSIA = 512
--LOCAL_INFO_SINGAPORE = 1024
--LOCAL_INFO_VIETNAM = 2048
--LOCAL_INFO_THAILAND = 4096
--LOCAL_INFO_MIDEAST = 8192
--LOCAL_INFO_TURKEY = 16384
--============================================================
-- <<<<<< [ABR] Auto Buff Remove: Start >>>>>>
--============================================================
permanentserverbuff_remove()
temporaryserverbuff_remove()
hv_pass_remove()
buff_under_20_remove()
buff_above_20_remove()
buff_above_50_remove()
buff_above_80_remove()
buff_above_100_remove()
buff_above_120_remove()
buff_above_150_remove()
buff_above_160_remove()
buff_at_170_remove()
buff_pet_below_100_remove()
buff_pet_above_100_remove()
permanentserverbuff_give()
temporaryserverbuff_give()
--============================================================
-- <<<<<< Auto Buff Remove: End >>>>>>
--============================================================
--============================================================
-- <<<<<< [ABG] Auto Buff Give: Start >>>>>>
--============================================================
hv_pass_give()
hv_ticket_give()
buff_under_20_give()
buff_above_20_give()
buff_above_50_give()
buff_above_80_give()
buff_above_100_give()
buff_above_120_give()
buff_above_150_give()
buff_above_160_give()
buff_at_170_give()
--============================================================
-- <<<<<< Auto Buff Give: End >>>>>>
--============================================================
--============================================================
-- <<<<<< Auto Buff 150-160 Set Effect: Start >>>>>>
--============================================================
--Original Credits to: MisterD and gr4ph0s
--Alteration Credits to: iSmokeDrow
--150 Set Bonus
trigger_effect_150_1()
trigger_effect_150_2()
trigger_effect_150_3()
trigger_effect_150_4()
--155 Set Bonus
trigger_effect_155_1()
trigger_effect_155_2()
trigger_effect_155_3()
trigger_effect_155_4()
--160 Set Bonus
trigger_effect_160_1()
trigger_effect_160_2()
trigger_effect_160_3()
trigger_effect_160_4()
--============================================================
-- <<<<<< Auto Buff 150-160 Set Effect: End >>>>>>
--============================================================
--============================================================
-- <<<<<< On_Login XP to GP Start >>>>>>
--============================================================
convert_xp_to_gen_point_lv5()
convert_xp_to_gen_point_lv10()
convert_xp_to_gen_point_lv15()
convert_xp_to_gen_point_lv20()
convert_xp_to_gen_point_lv25()
convert_xp_to_gen_point_lv30()
convert_xp_to_gen_point_lv40()
convert_xp_to_gen_point_lv60()
convert_xp_to_gen_point_lv80()
convert_xp_to_gen_point_lv100()
convert_xp_to_gen_point_lv120()
convert_xp_to_gen_point_lv140()
convert_xp_to_gen_point_lv150()
convert_xp_to_gen_point_lv155()
convert_xp_to_gen_point_lv160()
--============================================================
-- <<<<<< On_Login XP to GP END >>>>>>
--============================================================
local state_code = get_local_info()
The problem with the lv up insert item is, some player uses a failure in this.
for example you hittet lvl 120 - get the item, than you go die and use a god mother fairy bottle and hit 120 again and will recieve the item again
To stop this just set the target on the "max_reached_level"
freind i need 20.000 code in warrock if you give me i give you xm8 code 30 day 01/17/2011 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies freind i need 20.000 code in warrock if you give me i give you xm8 code 30 day
freind i need 20.000 code in warrock if you give me i give you xm8 code 30 day
freind i need 20.000 code in warrock if you give me i give you xm8 code 30 day:rtfm::mad::mad::mad::mad::mad::mad: