sloowy
-
Posts
3 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by sloowy
-
-
Hello, i used this script to make pvp & woe potion
Quoteif (strcharinfo(3) == "pvp_y_2-2") itemheal rand(330,410),0;
i wanna ask, is possible to change "pvp_y_2-2"(the trigger) into mapflap or every map that have mapflag pvp or mapflag gvg?
so, i don't need to make another script for another pvp or gvg map.
thank you.
i mean, i want to make potion that only can be used in pvp or gvg mapflag. sorry my english is so bad
*edit solved bymyself
for itemQuote39997,PVP_HP_Pot,PVP HP Potion,,0,,30,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "hp"; },{},{}
39998,PVP_SP_Potion,PVP SP Potion,,0,,30,,,,,0xFFFFFFFF,63,2,,,,,,{ callfunc "sppot"; },{},{}for function
Quotefunction script hp {
if ( getmapflag( strcharinfo(3),mf_pvp,0 )) itemheal rand(330,410),0;
if ( getmapflag( strcharinfo(3),mf_gvg,0 )) itemheal rand(330,410),0;
specialeffect2 207;
end;
}function script sppot {
if ( getmapflag( strcharinfo(3),mf_pvp,0 )) itemheal 0,rand(40,65);
if ( getmapflag( strcharinfo(3),mf_gvg,0 )) itemheal 0,rand(40,65);
specialeffect2 208;
end;
}- 1
-
hello
i wanna ask about item_db.txt
is possible if i use item_db.txt renewal for pre renewal server?
is there will be any trouble if i do that ?
thank you
PvP & GvG Potion
in Scripting Support
Posted
solved
for item
for function