function get_module_name()
return "on_player_dead"
end
function on_player_dead( name, lost_exp, drop_item_name )
local level
level = get_value( "level" )
-- 5레벨 이상이면 경험치 하락 처리
if level > 5 then
--##시작
message(sconv("@90019004", "#@lost_exp@#",tostring(lost_exp)))
--##끝 전투불능으로 인해 #@lost_exp@# EXP를 잃었습니다.
else
--##시작
message("@90019005")
end
save()
end
-- revive_type 값에 따른 부활 유형
-- 0: 그냥 필드에�* 죽어�* 일�İ 부활
-- 1: 대련 장에�* 대련 중 사망에 대한 부활(기존 대련 시스템)
-- 2: 1:1 PVP 관련 신규 대련 시스템에 의한 대련 중 사망에 부활
-- 3: 던전 시즈 중 사망에 대한 부활
function revive_in_town( revive_type )
-- 수련자 섬에 있는 오토들은 본토로 날려 버리자
local current_x = gv("x")
local current_y = gv("y")
local is_training_camp = false
local race = get_value( "race" )
if current_x >= 161280 and current_x <= 177408 then
if current_y >= 48384 and current_y <= 64512 then
is_training_camp = true
end -- if current_y >= 48384 and current_y <= 64512 then
end -- if current_x >= 161280 and current_x <= 177408 then
if is_training_camp then
local is_auto, quest_count
quest_count, is_auto = anti_auto_quest_check()
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
else
warp_to_revive_position()
end -- if is_auto then
else
-- 수련자의 섬이 아니라면 설정된 지역으로 날려줌.
warp_to_revive_position()
end
-- 오토로 세팅된 캐릭터라면 저 멀리 날려 버리자~
kick_auto_to_another_world()
-- 부활 할 때의 회복 HP를 정하는 조건 문 값에 대한 것은 상단에 주석으로 나와 있다.
if revive_type == 0 then
set_value( "hp" , get_value( "max_hp" ) )
add_state(164407,500,8640000) -- Halisha +1000
add_state(1013,83,8640000) -- Mov Spd +250%
add_state(1012,150,8640000) -- Cast Spd +150%
add_state(1011,150,8640000) -- Atk Spd +150%
add_state(1018,100,8640000) -- Crit Ratio 100%
add_state(1007,150,8640000) -- PAtk +450%
add_state(1008,150,8640000) -- MAtk +450%
add_state(4065,23,8640000) -- HP Regen 10,000/5sec
add_state(4016,34,8640000) -- MP Regen 1000/5sec
else
if gv("permission") == 1 then
add_state(164407,125,8640000) -- Halisha +250
add_state(1013,50,8640000) -- Mov Spd +150%
add_state(1018,70,8640000) -- Crit Ratio +70%
add_state(4065,11,8640000) -- HP Regen 5000/5sec
add_state(4016,34,8640000) -- MP Regen 1000/5sec
elseif gv("permission") == 0 then
if gv("lv") < 20 then
add_state(1001,15,8640000) -- Max HP +50%
add_state(1002,15,8640000) -- Max MP +50%
add_state(1007,10,8640000) -- PAtk +30%
add_state(1008,10,8640000) -- MAtk +30%
add_state(1009,10,8640000) -- PDef +30%
add_state(1013,33,8640000) -- Mov Spd +99%
elseif gv("lv") > 19 and gv("lv") < 50 then
add_state(164407,10,8640000) -- Halisha + 20
add_state(1018,15,8640000) -- Crit Ratio +15%
add_state(1013,5,8640000) -- Mov Spd +15%
elseif gv("lv") > 49 and gv("lv") < 80 then
add_state(164407,15,8640000) -- Halisha + 30
add_state(1018,20,8640000) -- Crit Ratio +20%
add_state(1013,5,8640000) -- Mov Spd +15%
elseif gv("lv") > 79 and gv("lv") < 100 then
add_state(164407,20,8640000) -- Halisha + 40
add_state(1018,25,8640000) -- Crit Ratio +25%
add_state(1013,6,8640000) -- Mov Spd +18%
elseif gv("lv") > 99 and gv("lv") < 120 then
add_state(164407,25,8640000) -- Halisha + 50
add_state(1018,30,8640000) -- Crit Ratio +30%
add_state(1013,7,8640000) -- Mov Spd +21%
elseif gv("lv") > 119 and gv("lv") < 155 then
add_state(164407,30,8640000) -- Halisha + 60
add_state(1018,35,8640000) -- Crit Ratio +35%
add_state(1013,8,8640000) -- Mov Spd +24%
elseif gv("lv") > 154 and gv("lv") < 170 then
add_state(164407,35,8640000) -- Halisha + 70
add_state(1018,40,8640000) -- Crit Ratio +40%
add_state(1013,9,8640000) -- Mov Spd +27%
elseif gv("lv") > 170 then
add_state(164407,50,8640000) -- Halisha + 100
add_state(1018,50,8640000) -- Crit Ratio +50%
add_state(1013,10,8640000) -- Mov Spd +30%
end
end
end
-- 일�İ 필드에�* 몬스터에게 죽어�* 마을로 복귀해�* 부활 100%회복
elseif revive_type == 1 then
set_value( "hp" , get_value( "max_hp" ) * 0.1 ) -- 대련장에�* 대련 후 제자리 부활 선택 시 HP 10% 만 회복.
elseif revive_type == 2 then
set_value( "hp" , get_value( "max_hp" ) * 0.1 ) -- 1:1 PVP 대련 후 제자리 부활 선택 시 HP 10% 만 회복.
elseif revive_type == 3 then
set_value( "hp" , get_value( "max_hp" ) * 0.1 ) -- 던전 시즈 중 사망 후 부활 시 가장 가까운 소유의 전략 거점에�* HP 10%만 회복해�* 부활한다.
else
set_value( "hp" , get_value( "max_hp" ) ) -- 일�İ 사망 후 부활 선택 시 HP MAX 로 회복.
where to start why u added to on dead doesnt make alot of sense but ill go with it.
theres to many end's and the expected function is broken how to fix? look in notepad++ look at line 35 its telling you whats wrong
C++ Script Problem 08/24/2011 - C/C++ - 9 Replies Hi,
ich taste mich grade an C++ ran und habe schon mein ersten kleines Programm geschrieben:
#include <iostream.h>
// Das Hallo C++ Programm
int main()
{
cout << "Hallo C++!\n";
return 0;
}
Script Problem 12/19/2010 - WoW Private Server - 2 Replies Guten Tag!
Core: ArcEmu
Rev. 3930
Scripts: ArcScripts
Script: Habe ein Script erstellt welches wie ein Buzzer Spiel funktioniert. Es sind mehrere GO's statisch da und wer einen dieser Buzzer dr�ckt l�st ein Event aus welches einen NPC Spawnt der dann den Namen des Spieler sagt welcher gedr�ckt hat. Nach 5 Sekunden despawnt der wieder und das Event ist gesperrt bis ein GM auf nen eigenen buzzer dr�ckt um es zu reseten.
Problem: Das Script funktioniert einwandfrei, zumindest die...
Problem VB 10 Patcher Script Problem 09/20/2010 - .NET Languages - 8 Replies Hayho liebe Com.
ich habe mal wieder einen ganz netten Patcher gescriptet, f�r einen metin2 P Server,
da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
Problem mit Script 08/10/2010 - AutoIt - 14 Replies hey,
ich brauche dringend hilfe!!
hab mir ein script f�r ein spiel gebastelt aber ich schaffe es nicht,
das er einmal auf eine stelle dr�ckt. also wenn er einmal auf die stelle
(524,394, 1, 0) clickt das er dann 1 sekunde nichtmehr dahinklicken kann.
w�rde das gehen?
w�r nett wenn mir jemand helfen k�nnte :)
mfg Key4To
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem! 06/21/2010 - Metin2 Private Server - 11 Replies hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler :
http://img541.imageshack.us/img541/8140/24955249. png
und wenn ich dann die datei �ffne und in die zeile gehe kommt:
while($row = mysql_fetch_array($ergebnis))
kann mir jmd helfen?