• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

War System

pele112

Member
Joined
Aug 9, 2007
Messages
572
Reaction score
8
Location
Wodzisław Śląski
Witam poszukuje war systemu czyli gildie pomiędzy sobą wypowiadają sobie wojnę (jedna wypowiada, druga akceptuje) no i się jebią. Jeśli się zaznaczy typa z gildi z którą jest wojna to się automatycznie u tego typka którego się zaznaczyło pojawia się yellow skull :) No i oczywiście staty pojawiają się na stronie, czy jest tu może taki skrypt na forum? bo szukałem i za bardzo nic nie znalazłem ;P

Mam taki problem
blado.jpg

TFS SVN_0.3.5r2005

3 Sprawa jak zrobić by 2 osoba nie mogła kogoś potkować?
 
Last edited:
Witam poszukuje war systemu czyli gildie pomiędzy sobą wypowiadają sobie wojnę (jedna wypowiada, druga akceptuje) no i się jebią. Jeśli się zaznaczy typa z gildi z którą jest wojna to się automatycznie u tego typka którego się zaznaczyło pojawia się yellow skull

a to yellow skull bez takowego systemu sie nie pojawia?
 
pewnie się pojawia, tylko jemu chodzi o walki gildii,
ze jak biję w nieswojego członka grupy to np nie włącza się yellow skull. Chyba o to ci chodzi?
 
Jak np ja zaczne bić kolesia z przeciwnej gildi to mu sie automatycznie właczy yellow skull i wtedy np taki typ rsa nie wbije albo bana ;p
 
Strong Mana Potion
local MIN = 190
local MAX = 240
local EMPTY_POTION = 7634

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isPlayer(itemEx.uid)) then
return false
end

if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return true
end

if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid) or isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 50) and
not getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges))
then
doCreatureSay(itemEx.uid, "Only sorcerers, druids and paladins of level 50 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return true
end

if(not doPlayerAddMana(itemEx.uid, math.random(MIN, MAX))) then
return false
end

doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid,1)
return true
end
 
Jakiś błąd 2 posty mi sie pod sobą jebly :p
Coś mi ten war system nie działa na stronie pisze kto ma wojne ale nie pisze fragów a sie zabijali 0 - 0 i gracz dostaje fraga :p
może to nie działa pod nowy system fragów?(TFS SVN_0.3.5r2005)
[Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/skullcheck.lua)
data/creaturescripts/scripts/skullcheck.lua:3: ')' expected near 'then'
Lua Script Error: [TalkAction Interface].
data/talkactions/scripts/deathlist.lua

data/talkactions/scripts/deathlist.lua:6: attempt to compare number with nil
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/deathlist.lua)
 
Last edited:
Back
Top