|
You last visited: Today at 15:14
Advertisement
Metin2 İtem click properties - update [poXavincS]
Discussion on Metin2 İtem click properties - update [poXavincS] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
07/02/2011, 00:09
|
#1
|
elite*gold: 0
Join Date: Apr 2009
Posts: 103
Received Thanks: 53
|
Metin2 Quest properties - Current [poXavincS]
Metin2 İtem click, NPC click rather quest properties all codes
note: Metin2 .quest file script use Lua
test.quest file for use edit program is notepad++
Metin2 all quest file in include is questlib.lua
questlib.lua file dir//usr/rain/channel/share_data/locale/hongkong/
pc . level >= 5 5 or 5++ level accepted
command ("level 65") level up 65
command ("command".. $varriable_sample.."command end")
$varriable_sample
-- these player.sql
['weapon'] = pc.getweapon,
['level'] = pc.get_level,
['hp'] = pc.gethp,
['maxhp'] = pc.getmaxhp,
['sp'] = pc.getsp,
['maxsp'] = pc.getmaxsp,
['exp'] = pc.get_exp,
['nextexp'] = pc.get_next_exp,
['change_name'] = pc.change_name,
['job'] = pc.get_job,
['money'] = pc.getmoney,
['gold'] = pc.getmoney,
['name'] = pc.getname,
['playtime'] = pc.getplaytime,
['leadership'] = pc.getleadership,
['empire'] = pc.getempire,
['skillgroup'] = pc.get_skill_group,
['x'] = pc.getx,
['y'] = pc.gety,
['local_x'] = pc.get_local_x,
['local_y'] = pc.get_local_y,
$varriable_sample; questlib.lua open notepad++ start line 369
****
affect.add_collect(apply.MOV_SPEED, 10, 10*60) -- (apply.$special_bonus, bonus_value, time)
$special_bonus
-- these player.sql >> item_attr
["MAX_HP"] = 1,
["MAX_SP"] = 2,
["CON"] = 3,
["INT"] = 4,
["STR"] = 5,
["DEX"] = 6,
["ATT_SPEED"] = 7,
["MOV_SPEED"] = 8,
["CAST_SPEED"] = 9,
["HP_REGEN"] = 10,
["SP_REGEN"] = 11,
["POISON_PCT"] = 12,
["STUN_PCT"] = 13,
["SLOW_PCT"] = 14,
["CRITICAL_PCT"] = 15,
["PENETRATE_PCT"] = 16,
["ATTBONUS_HUMAN"] = 17,
["ATTBONUS_ANIMAL"] = 18,
["ATTBONUS_ORC"] = 19,
["ATTBONUS_MILGYO"] = 20,
["ATTBONUS_UNDEAD"] = 21,
["ATTBONUS_DEVIL"] = 22,
["STEAL_HP"] = 23,
["STEAL_SP"] = 24,
["MANA_BURN_PCT"] = 25,
["DAMAGE_SP_RECOVER"] = 26,
["BLOCK"] = 27,
["DODGE"] = 28,
["RESIST_SWORD"] = 29,
["RESIST_TWOHAND"] = 30,
["RESIST_DAGGER"] = 31,
["RESIST_BELL"] = 32,
["RESIST_FAN"] = 33,
["RESIST_BOW"] = 34,
["RESIST_FIRE"] = 35,
["RESIST_ELEC"] = 36,
["RESIST_MAGIC"] = 37,
["RESIST_WIND"] = 38,
["REFLECT_MELEE"] = 39,
["REFLECT_CURSE"] = 40,
["POISON_REDUCE"] = 41,
["KILL_SP_RECOVER"] = 42,
["EXP_DOUBLE_BONUS"] = 43,
["GOLD_DOUBLE_BONUS"] = 44,
["ITEM_DROP_BONUS"] = 45,
["POTION_BONUS"] = 46,
["KILL_HP_RECOVER"] = 47,
["IMMUNE_STUN"] = 48,
["IMMUNE_SLOW"] = 49,
["IMMUNE_FALL"] = 50,
["SKILL"] = 51,
["BOW_DISTANCE"] = 52,
["ATT_GRADE_BONUS"] = 53,
["DEF_GRADE_BONUS"] = 54,
["MAGIC_ATT_GRADE"] = 55,
["MAGIC_DEF_GRADE"] = 56,
["CURSE_PCT"] = 57,
["MAX_STAMINA"] = 58,
["ATTBONUS_WARRIOR"] = 59,
["ATTBONUS_ASSASSIN"] = 60,
["ATTBONUS_SURA"] = 61,
["ATTBONUS_SHAMAN"] = 62,
["ATTBONUS_MONSTER"] = 63,
$special_bonus; questlib.lua open notepad++ start line 514
****
quest color new function by poXavincS
questlib.lua open notepad++ start line 73
function color256(r, g, b) return "[COLOR r;"..(r/ 255.0).."|g;"..(g/ 255.0).."|b;"..(b/ 255.0).."]" end
questlib.lua add line to anywhere
function say_red(name) say(color256(255, 0, 0)..name..color256(196, 196, 196)) end
function say_lightblue(name) say(color256(0, 150, 255)..name..color256(196, 196, 196)) end
function say_hotpink(name) say(color256(255, 105, 180) ..name..color256(196, 196, 196)) end
function say_orange(name) say(color256(255, 165, 0) ..name..color256(196, 196, 196)) end
Sample:
color256(196, 196, 196) => color is gry == $gry
this is color, your sample is "say_orange("Hi elitepvpers members") after bottom line say("$gry")"
***
Quest Window size:
questlib.lua open notepad++ start line 82
quest window function;
function say_size(width, height) say("[WINDOW_SIZE width;"..width.."|height;"..height.."]") end
Sample:
say_size(800, 600) type: pixel
***
Quest Page add image and bg_image
questlib.lua open notepad++ start line 39
Background image function:
function setbgimage(src) raw_script("[BGIMAGE src;") raw_script(src) raw_script("]") end
setbgimage("../../pox_elite.jpg") image types: jpg, png, gif, dds
Image function:
function addimage(x,y,src) raw_script("[IMAGE x;"..x.."|y;"..y) raw_script("|src;") raw_script(src) raw_script("]") end
addimage(300, 500, "../../pox_elite.jpg") image types: jpg, png, gif, dds
***
Quest Page button function
questlib.lua open notepad++ start line 44
function makequestbutton(name) raw_script("[QUESTBUTTON idx;")
raw_script(""..q.getcurrentquestindex()) raw_script("|name;")
raw_script(name) raw_script("]") end
select( makequestbutton( "Button name"))
Select function;
function select(...)
return q.yield('select', arg)
end
Up to now this
|
|
|
04/13/2012, 06:33
|
#2
|
elite*gold: 0
Join Date: Dec 2011
Posts: 12
Received Thanks: 0
|
He man, i was cheking it and it could be of help while we coding quest. Tanks, it's a great aport to me.
See u. and Tank you again.
Ciao.
|
|
|
04/13/2012, 06:35
|
#3
|
elite*gold: 0
Join Date: Sep 2010
Posts: 1,219
Received Thanks: 278
|
#Reported pushed old Treads!
|
|
|
08/13/2014, 13:55
|
#4
|
elite*gold: 0
Join Date: Jul 2011
Posts: 28
Received Thanks: 12
|
Hello, i have a problem with my quest.
I try add bg image at npc (9005), but word is out image... why?
This is part of quest:
Code:
quest warehouse begin
state start begin
when 9005.click begin
if pc.getqf("pw")==0 then
setbgimage("depozit1.tga")
say_size(200,400)
say_title(" Administratorul depozitului:")
say_red("Bine ai venit. Eu îţi pot oferi depozitulabcdefghijklmnopq")
say("tău personal în schimul a 500 Yang.")
say_reward("Vrei să cumperi ?")
local s=select("Cumpără.", "Ma-m răzgândit.")
if s==2 then
return
end
Screen:
|
|
|
 |
Similar Threads
|
Change map properties
12/05/2010 - Metin2 Private Server - 1 Replies
Anyone got an idea how to make the metin2_map_t1 like guild war?
what i mean is when you die and stand up again, you have full hp and mp?
it would be great if anyone knows
|
SF PATCH IN PROPERTIES
10/27/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 6 Replies
Ito poh patch ko sa properties
ito ang linK: sf.7z
1.Dowload first
2.Extract the files and copy
3.Then Right click SF and GO to properties
4.CLICk Find target
5.Paste
|
SF PATCH IN PROPERTIES
10/27/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 6 Replies
Ito poh patch ko sa properties :D:D:D:D
ito ang linK: sf.7z
1.Dowload first
2.Extract the files and copy
3.Then Right click SF and GO to properties
4.CLICk FInd target
5.Paste
|
SF PATCH IN PROPERTIES
10/27/2010 - Soldier Front Hacks, Bots, Cheats & Exploits - 5 Replies
Ito poh patch ko sa properties
ito ang linK: sf.7z
1.Dowload first
2.Extract the files and copy
3.Then Right click SF and GO to properties
4.CLICk Find target
5.Paste
|
All times are GMT +1. The time now is 15:17.
|
|