Run this SQL query and restart your server to fix the NPC locations.
Code:
USE
Arcadia
GO
UPDATE [dbo].[NPCResource] SET x='221311', y='20575' WHERE id='11225'
UPDATE [dbo].[NPCResource] SET x='222541', y='20331' WHERE id='7025'
Thanks for the bug report, I'm surprised this wasn't reported earlier.
function get_module_name()
return "NPC_Buff"
end
--============================================================
-- <<<<<< 1. Druid Kart >>>>>>
--============================================================
function hidden_village_buffer()
local npc_id = get_npc_id()
if npc_id == 11225 then
dlg_title("Madosa Kart")
else
dlg_title("Druid Kart")
end
if is_premium() then
dlg_text("Would you like some buffs?")
dlg_menu("Can you please buff me?", "druid_kart_select_player()")
dlg_menu("Can you please buff my creature?", "druid_kart_select_creature()")
dlg_menu("Goodbye!", "")
dlg_show()
else
is_not_premium_error()
end
end
function druid_kart_select_player()
local npc_id = get_npc_id()
if npc_id == 11225 then
dlg_title("@105011225")
else
dlg_title("Druid Kart")
end
if is_premium() then
dlg_text("Which buff do you want?")
dlg_menu("Physical Attack - 1,000R", "druid_kart_give_player(1007)")
dlg_menu("Magical Attack - 1,000R", "druid_kart_give_player(1008)")
dlg_menu("Physical Defense - 1,000R", "druid_kart_give_player(1009)")
dlg_menu("Magical Defense - 1,000R", "druid_kart_give_player(1010)")
dlg_menu("Attack Speed - 1,000R", "druid_kart_give_player(1011)")
dlg_menu("Cast Speed - 1,000R", "druid_kart_give_player(1012)")
dlg_menu("Movement Speed - 1,000R", "druid_kart_give_player(1013)")
dlg_menu("Get All Buffs - 7,000R", "druid_kart_give_player(0)")
dlg_menu("Nevermind.", "hidden_village_buffer()")
dlg_menu("Goodbye!", "")
dlg_show()
else
is_not_premium_error()
end
end
function druid_kart_select_creature()
local npc_id = get_npc_id()
if npc_id == 11225 then
dlg_title("Madosa Kart")
else
dlg_title("Druid Kart")
end
if is_premium() then
dlg_text("Which buff do you want?")
dlg_menu("Physical Attack - 1,000R", "druid_kart_give_creature(1007)")
dlg_menu("Magical Attack - 1,000R", "druid_kart_give_creature(1008)")
dlg_menu("Physical Defense - 1,000R", "druid_kart_give_creature(1009)")
dlg_menu("Magical Defense - 1,000R", "druid_kart_give_creature(1010)")
dlg_menu("Attack Speed - 1,000R", "druid_kart_give_creature(1011)")
dlg_menu("Cast Speed - 1,000R", "druid_kart_give_creature(1012)")
dlg_menu("Movement Speed - 1,000R", "druid_kart_give_creature(1013)")
dlg_menu("Get All Buffs - 7,000R", "druid_kart_give_creature(0)")
dlg_menu("Nevermind.", "hidden_village_buffer()")
dlg_menu("Goodbye!", "")
dlg_show()
else
is_not_premium_error()
end
end
function druid_kart_give_player(buffcode)
local npc_id = get_npc_id()
if npc_id == 11225 then
dlg_title("Madosa Kart")
else
dlg_title("Druid Kart")
end
local gold = get_value("gold")
gold = tonumber(gold)
if buffcode == 0 then
if gold >= 7000 then
sv("gold", gold-7000)
update_gold_chaos()
add_state(1007, 6, 900000)
add_state(1008, 6, 900000)
add_state(1009, 6, 900000)
add_state(1010, 6, 900000)
add_state(1011, 6, 900000)
add_state(1012, 6, 900000)
add_state(1013, 6, 900000)
druid_kart_select_player()
else
dlg_text("Sorry, you do not have enough money.")
dlg_menu("Goodbye!", "")
dlg_show()
end
else
if gold >= 1000 then
sv("gold", gold-1000)
update_gold_chaos()
add_state("" .. buffcode .. "", 6, 900000)
druid_kart_select_player()
else
dlg_text("Sorry, you do not have enough money.")
dlg_menu("Goodbye!", "")
dlg_show()
end
end
end
function druid_kart_give_creature(buffcode)
local npc_id = get_npc_id()
if npc_id == 11225 then
dlg_title("Madosa Kart")
else
dlg_title("Druid Kart")
end
local gold = get_value("gold")
gold = tonumber(gold)
if buffcode == 0 then
if gold >= 7000 then
sv("gold", gold-7000)
update_gold_chaos()
add_cstate(1007, 6, 900000)
add_cstate(1008, 6, 900000)
add_cstate(1009, 6, 900000)
add_cstate(1010, 6, 900000)
add_cstate(1011, 6, 900000)
add_cstate(1012, 6, 900000)
add_cstate(1013, 6, 900000)
druid_kart_select_creature()
else
dlg_text("Sorry, you do not have enough money.")
dlg_menu("Goodbye!", "")
dlg_show()
end
else
if gold >= 1000 then
sv("gold", gold-1000)
update_gold_chaos()
add_cstate("" .. buffcode .. "", 6, 900000)
druid_kart_select_creature()
else
dlg_text("Sorry, you do not have enough money.")
dlg_menu("Goodbye!", "")
dlg_show()
end
end
end
end
I found my problem about "attempt to call NPC global" (I applied to the wrong files from my old version server that I forgot to remove before the new one immigrated) but since I applied the code, the problem is getting worse that I can not use hidden village pass. It doesn't pop up. Anyone knows how to fix it? I would appreciate that
I found my problem about "attempt to call NPC global" (I applied to the wrong files from my old version server that I forgot to remove before the new one immigrated) but since I applied the code, the problem is getting worse that I can not use hidden village pass. It doesn't pop up. Anyone knows how to fix it? I would appreciate that
Remove this at the bottom of your etc_script_function.lua file :
Code:
function is_premium()
local hvbuff = get_state_level("9004")
if hvbuff >= 1 then
return true
else
return false
end
end
function is_not_premium_error()
dlg_text("I'm sorry, but we only provide services to those with a Hidden Village pass.")
dlg_menu("Goodbye!", "")
dlg_show()
end
Because you already have the function premium at the top of the lua file.
More a suggestion than a bug, Atk Speed gives 12% as opposed to all the other buffs, so, change the 1011 buff line from lvl 6 to lvl 9, so every buff is 18%. At least, that's what I did, cheers.
Help.. Privat Server [ Hidden Village ] 07/29/2011 - Rappelz - 1 Replies Hi everyone ;)
Tell me please How can I get Hidden Village Like A Buuff :p
i Write the code but i can't login in it :rolleyes:
7 Days Hidden Village free 09/08/2010 - Rappelz - 2 Replies Hi Leute ^^
Ich hab ma vor ner zeit lang Rappelz aufm ammi server gespielt.Dort hab ich ein Code bekommen wodurch man 7 days hidden village bekommt.Probiert ihn mal aus-auf der inet seite musst ihr ihn bei den codes eingeben (wo genau weis ich nich mehr is zu lange her ^^) falls er funsen sollte gebt mir einfach dafür ein thanks :D
Grüße
Code here
IWOO-0001-GAJC-NONW
PS:ihr müsst das natürlich auf der ammi seite eingeben.
Hidden buffer 11/22/2009 - Metin2 - 18 Replies Hey erstmal :D
Kennt wer einen hidden buffer? könnte mir wer den link geben? ich weis das es 1 gibt aber find den nicht
ps: sufu benutz metin2 tools hatt es auch nicht...
und keine antworten wie google...