Lilith
-
Posts
407 -
Joined
-
Last visited
-
Days Won
11
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Lilith
-
-
- Popular Post
- Popular Post
Hello all!
Now i present to you my release : Faction system.Faction system settings:
conf/battle/faction.conf//--------------------------------------------------------------
// Faction system configuration file [Lilith]//--------------------------------------------------------------// Note 1: Value is a config switch (on/off, yes/no or 1/0)// Note 2: Value is in percents (100 means 100%)// Note 3: Value is a bit field. If no description is given,// assume unit types (1: Pc, 2: Mob, 4: Pet, 8: Homun, 16: Mercenary, 128: NPC, 512: Elemental)//--------------------------------------------------------------// What unit type can receive faction status (race, element...) Note 3// 539 = PC(1) + MOB(2) + HOM(8) + MER(16) + ELEM(512) (Default)faction_status_bl: 539// Faction chat settings.// 1 = Colored messages// 2 = Hide names from other factions (except Alliance)// 3 = 1+2 (Default)faction_chat_settings: 3// Start FvF mapflag on all maps? (Note. 1)fvf_in_all_maps: yes// Display HP bar in the same factions? (Note. 1)fvf_hp_bar: yes// Damage adjustment settings, these follow the same logic as their WoE counterparts (see guild.conf)fvf_short_attack_damage_rate: 80fvf_long_attack_damage_rate: 80fvf_weapon_attack_damage_rate: 60fvf_magic_attack_damage_rate: 60fvf_misc_attack_damage_rate: 60// Change this to define the minimum level players can fight in FvFfvf_min_lvl: 55// Display unit's faction size? (visual effect)// 0 - disable// 1 - only FvF maps (Default)// 2 - everywherefvf_visual_size: 1// Unit type for setting 'fvf_visual_size'. (Note 3 except Mercenaries)// 527 = PC(1) + MOB(2) + PET(4) + HOM(8) + ELEM(512) (Default)faction_size_bl: 527// Display faction aura?// 0 - disable// 1 - only FvF maps (Default)// 2 - everywherefaction_aura_settings: 1// What unit type can receive 'faction_aura_settings'. (Note 3)// 671 = PC(1) + MOB(2) + PET(4) + HOM(8) + MER(16) + NPC(128) + ELEM(512) (Default)faction_aura_bl: 671// What unit type can display 'enemy' over head?// 539 = PC(1) + MOB(2) + HOM(8) + MER(16) + ELEM(512) (Default)faction_ally_info_bl: 539// Faction leader message color ( @factionannounce <message> )// 0xRRGGBBchat_leader: 0xFF66FF// Should the player's dye change own color?// 0 - disable// 1 - only FvF maps (Default)// 2 - everywherefvf_change_ccolor: 1// Can the faction with race or element Undead/Demon use healing skills to oneself ? (Note 1)// 0 - disable// 1 - Only same faction members (Default)// 2 - Alliance faction membersfaction_heal_settings: 1// What unit type can receive 'faction_heal_settings'. (Note 3)// 19 = PC(1) + MOB(2) + MER(16) (Default)faction_heal_bl: 19// Faction party settings:// 0 - Allow members to talk with NPC in same faction (Default)// 1 - Allow members from alliance to talk with NPC// 2 - No restrictionsfaction_npc_settings: 0// Faction party settings:// 0 - Allow members in same faction to join same party (Default)// 1 - Allow faction members from alliance to join same party// 2 - No restrictionsfaction_party_settings: 0// Faction guild settings:// 0 - Allow members in same faction to join same guild (Default)// 1 - Allow faction members from alliance to join same guild// 2 - No restrictionsfaction_guild_settings: 0// Faction trade settings:// 0 - Allow members in same faction to trade (Default)// 1 - Allow faction members from alliance to trade// 2 - No restrictionsfaction_trade_settings: 0// Max Discount & overcharge settings ( percentage )// By default: max discount is -100%, overcharge is 100%faction_disc_min: -100faction_disc_max: 100Faction data base:db/faction_db.txt
// Complete Faction System [Lilith]
// ID,Faction Name,Faction Player name,Location,X,Y,Race,Element,Element lvl,Size,Clothes Color,Color of mes,{ Aura: #1 #2 #3 },{ Script Bonus },{ Faction Aura Script Bonus }// * ID: Faction ID// * Faction Name: Faction Name// * Faction Player name: Player's name on FvF maps// * Location: Faction Location (home)// * X: X coordinate for faction location// * Y: Y coordinate for faction location// * Race:// 0 = Formless, 1 = Undead, 2 = Brute, 3 = Plant, 4 = Insect,// 5 = Fish, 6 = Demon, 7 = Demi-Human, 8 = Angel, 9 = Dragon// * Element:// 0 = Neutral, 1 = Water, 2 = Earth, 3 = Fire, 4 = Wind,// 5 = Poison, 6 = Holy, 7 = Dark, 8 = Spirit, 9 = Undead// * Element lvl: 1 ~ 4// * Size: 1 - small, 0 - normal, 2 - big// * Clothes Color: Dye color// * Color of messages (0xRRGGBB): Ex. 0xFF0000 - red// * { Aura } : see doc/effect_list.txt// * { Script Bonus } : Script Bonus for each faction// * { Faction Aura Bonus } : Script bonus for faction aura around faction leader like guild master's aura// Faction ID: 11,Paradise,Angel,gonryun,0,0,8,6,1,1,1,0x6495ED,{ #240 #418 },{ bonus bInt,3; },{ bonus bInt,30; }// Faction ID: 22,Forest,Elf,payon,0,0,7,0,1,0,2,0x7CFC00,{ #678 #679 #680 },{ bonus bDex,3; },{ bonus bDex,30; }// Faction ID: 33,Hell,Demon,morocc,0,0,1,9,1,2,3,0xFF3030,{ #239 #485 },{ bonus bStr,3; },{ bonus bStr,30; }// Faction ID: 44,Earth,Human,prontera,155,180,7,0,1,0,4,0xEE82EE,{ #200 #201 },{ bonus bLuk,3; },{ bonus bLuk,30; }Faction alliances db:
db/faction_alliance.txt
// Faction ID, Alliance Faction ID{: Alliance Faction ID{:...}}
// Faction ID 1 have alliance with IDs: 2, 3, 41,2:3:4// Faction ID 3 have alliance with ID 43,4New atcommands
@setfaction - Set faction
@reloadfactiondb - Reloading faction data bases@fvfon - FvF on@fvfoff - FvF off@home - Return character to Faction home location@vote - Vote for faction leader@factionchat - Like @mainchat, but with faction members@alliancechat - Like @mainchat, but with faction + faction alliance members@factionmonster - Spawn faction monster@factionleader - Set faction leader@factionannounce - Announce to all faction members (Faction Leader feature)New Script commands
*setfaction(<Faction ID>{,<Char ID>});
*setfactionleader(<Faction ID>,<Char ID>);*relicadd(<Faction ID>,<Item ID>,<Slot>);*relicgetinfo(<Faction ID>,<Slot>);*relicactivate(<Faction ID>,<Slot>,<Val>);*relicdel(<Faction ID>,<Slot>);*votinginfo(<Faction ID>);*vote(<Char ID>{,<Amount of Votes>});*addvotes(<Char ID>{,<Amount of Votes>});*votingstart({<Faction ID>});*votingstop({<Faction ID>});*votingend({<Faction ID>});*factionmonster(<faction ID>,"<map name>",<x>,<y>,"<name to show>",<mob ID>,<amount>{,"<event label>"});*areafactionmonster (<faction ID>,"<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob ID>,<amount>{,"<event label>"});*fvfon "<map name>"{,Faction ID};*fvfoff "<map name>";
New mapflag: fvf ( mf_fvf )
New map cell: nofvf ( cell_nofvf, cell_chknofvf )
Main Features:- Faction versus Faction wars allowed only on FvF maps ( Min.lvl -> fvf_min_lvl: 55 )
- Custom aura effects ( max is 3 by default, but you can increase it )
- Aura can displaying for unit types in faction.conf: NPCs, Monsters, Pets, etc...( not only for Player )
- Monster and other can change own base status to status from faction_db.txt ( race, element... )
- If faction have Undead race or status faction members in this function can heal themselves ( if it allowed in faction_db.txt )
- NPC shops can sell items to different factions at different prices.
- Now saving faction leader and relics of each faction.
- Multi - alliance support.
- Voting system ( voting for faction leader ).
- Relics support.
- Logging Faction chat.
Youtube Preview
http://www.youtube.com/watch?v=S7q-ExosLa8
Price: FREE PATCH FOR RATHENA REV. 17310
Faction_System_Complete_1.4_rA17310.patch
Old BETA version
[bETA 2]: BETA_2.Faction_System.patch
- 23
- 1
-
Обнови эмулятор, добавлена опция минимальной группы в этом же файле.
// Minimum account group id required to connect to server.// Will not function if group_id_to_connect config is enabled.
// -1: disabled
// 0 or more: group id
min_group_id_to_connect: 1
-
login_athena.conf
// Required account group id to connect to server.// -1: disabled
// 0 or more: group id
group_id_to_connect: 1
-
sorry, but i was mistaken i think...
--- src/map/skill.c (revision 5)
+++ src/map/skill.c (working copy)
@@ -2840,6 +2840,9 @@
tick=va_arg(ap,unsigned int);
flag=va_arg(ap,int);
func=va_arg(ap,SkillFunc);
+
+ if(((TBL_PC*)src)->splash_range > 0 && map[src->m].flag.nosplash)
+ return 0;
if(battle_check_target(src,bl,flag) > 0)
{
-
prontera<TAB>mapflag<TAB>nosplash
-
Заглянули бы сперва в script_commands.txt, затем писали бы ответы.
mes "Alive mobs(real): "+getmapmobs(.@map$);
заменить на
mes "Alive mobs(real): "+mobcount(.@map$,"all");
- 1
-
-
Ну во-первых, не С++, а С (Си), во-вторых, можно проверить твои конфиги, если ты чего то не понял. Введи @mi 1002 в игре и кинь сюда строки с шансами выпадения.
-
-
EDP it is Status.
-
-
bonus2 bSubRace,RC_DemiHuman,10+(getrefine()*2);
-
if(getequipid(1)>0 && getequipid(9)>0 && getequipid(10)>0){......}
I think to use getequipid would be better
I think this would be better too o.O
*isequipped(<id>{,<id>{,<id>{,<id>}}})
This function will return 1 if the invoking character has all of the item
IDs given equipped (if card IDs are passed, then it checks if the cards are
inserted into slots in the equipment they are currently wearing). Theoretically
there is no limit to the number of items that may be tested for at the same time.
If even one of the items given is not equipped, 0 will be returned.
// (Poring,Santa Poring,Poporing,Marin)
if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!";
// (Poring)
if (isequipped(4001)) mes "A poring card is useful, don't you think?";
The function was meant for item scripts to support the cards released by Gravity
in February 2005, but it will work just fine in normal NPC scripts.
if(isequipped(<id1>,<id2>,<id3>) { bonus bAllStats,5; skill "SM_BASH",(<skill_lvl>); }
-
Request # 2
if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; }
if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; skill "SM_BASH",(skill_lvl); }
-
Извини, а логин сервер при этом не ругается ?)
-
Не знаю я ваших гайдов )
char_athena.conf
строка//login_ip: 127.0.0.1
должна выглядеть так:
login_ip: внешний_Ip
строка
//char_ip: 127.0.0.1
должна выглядеть так:
char_ip: внешний_Ip
map_athena.conf
//char_ip: 127.0.0.1char_ip: внешний_Ip ( который указан в char_athena.conf )
//map_ip: 127.0.0.1
map_ip: внешний_Ip
-
Какая версия твоего ехе файла? И после какого действия пишет о потери соединения?
-
Обнови Lua файлы ( или Lub, что там у тебя ехе читает )
К тому же подобная тема уже есть на форуме.
-
-
.it will not work =
needs to update storage...
-
- script Reward -1,{ OnPCLoginEvent: if( #RD == gettime(8) ) end; set .@rewarditem, rand( getarraysize( .rewarditem ) ); query_sql "INSERT INTO `storage` VALUES (NULL, "+ getcharid(3) +", "+.@rewarditem+", 1 , 0, 1, 0, 0, 0, 0, 0, 0, 0)"; set #RD,gettime(8); end; Oinit: setarray .rewarditem[0],512,513,514; //reward item id end; }
it will not work =
-
in antibot1.txt replace
if (getmapmobs(@mapname$) < $@BK_MinMobs) {
to
if (mobcount(@mapname$,"all") < $@BK_MinMobs) {
check out your db/refine_db.txt
-
Exe version?
conf/battle/client.conf
// Set this to 1 if your client supports status change timers and you want to use them// Clients from 2009 onward support this
display_status_timers: yes
-
- script PvP_System -1,{ OnPCKillEvent: if(strcharinfo(3) != "pvp_y_1-2") end; if(@LastKilled == killedrid) end; set .@Killer,getcharid(3); set .@Killed,killedrid; detachrid; if(attachrid(.@Killed)){ if(#CASHPOINTS){ dispbottom "You Lost 1 Cash Point from "+rid2name(.@Killer); set #CASHPOINTS,#CASHPOINTS-1; emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "You Gained 1 Cash Points from "+rid2name(.@Killed); emotion e_meh,1; set #CASHPOINTS,#CASHPOINTS+1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } else { emotion e_sob,1; detachrid; if(attachrid(.@Killer)){ dispbottom "Sorry no cash points on the "+rid2name(.@Killed); emotion e_meh,1; set @LastKilled,.@Killed; attachnpctimer; initnpctimer; } } } end; OnTimer180000: set @LastKilled,0; stopnpctimer; detachnpctimer; end; }
Faction System
in Source Releases
Posted
Of course This version is Pre-Alfa (small functional). I would like add more features.
Next version will be with documentation.
Thanks, i'll add it.