-
Total de itens
15 -
Registro em
-
Última visita
Mehahbr's Achievements
-
não não é o mesmo...
-
Aconteceu algum bug no Remere Map Editor ... porque simplismente ele apago meu mapa... e nao tinha um backup dele... será que alguem poderia ajudar? Mas quando eu logo no OTserv... ele funciona direitinho olha as screen Download do Mapa... Se alguem conseguir acertar... obrigado pela ajuda! http://www.4shared.c...Nova_pasta.html
-
Olá, boa tarde xtibianos programadores de site Estou fazendo uma reportagem sobre um bug que acontece no Modern Acc quando você poe em site .net .... Ele nao conecta... Ao instalar ele ele o index.php dele acusa: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log. Web Server at pbotserver.net Como faco para resolver? Alguem tem ideia?? Pois ja tentei instalar Gesior, so que o Gesior nao Funciona por causa que precisa ter o OTserver no site coisa que nao quero postar meu ot por seguranca dos meus script item e mapa... tem como me ajudar?? Index.php Code do Modern Acc <?php session_start(); ob_start(); $start = microtime(true); require("config.php"); if($config['server_name'] == "%SERVER_NAME%") { header("Location: install/"); exit; } if(USING_WINDOWS && $config['engine']['loadManagement']) exit("Load management is not available on Windows. Please switch it off in config.php"); else if(USING_WINDOWS == 0 && $config['engine']['loadManagement']) { $process = sys_getloadavg(); if ($process[0] > $config['engine']['maxLoad']) { header('HTTP/1.1 503 Too busy, try again later'); die('IDE Dropped connection with you. The server is too busy. Please try again later.'); } } /* |--------------------------------------------------------------- | PHP ERROR REPORTING LEVEL |--------------------------------------------------------------- | | By default CI & IDE runs with error reporting set to ALL. For security | reasons you are encouraged to change this when your site goes live. | For more info visit: http://www.php.net/error_reporting | */ error_reporting(E_ALL); /* |--------------------------------------------------------------- | SYSTEM FOLDER NAME |--------------------------------------------------------------- | | This variable must contain the name of your "system" folder. | Include the path if the folder is not in the same directory | as this file. | | NO TRAILING SLASH! | */ $system_folder = "system"; /* |--------------------------------------------------------------- | APPLICATION FOLDER NAME |--------------------------------------------------------------- | | If you want this front controller to use a different "application" | folder then the default one you can set its name here. The folder | can also be renamed or relocated anywhere on your server. | | | NO TRAILING SLASH! | */ $application_folder = "application"; /* | Define template name */ $template = $config['layout']; /* Full website address including HTTP:// Without slash at the end! */ $website = $config['website']; /* Default time zone for the server must be set here. */ date_default_timezone_set($config['timezone']); /* Set the default title of a website. */ $title = $config['title']; /* |=============================================================== | END OF USER CONFIGURABLE SETTINGS |=============================================================== */ require("system/api.php"); if(!DEFINED("API_KEY") or !DEFINED("API_PASS")) exit("This server does not have API_KEY or API_PASS set properly. If you are administrator of this server check the system/api.php in order to set the right properties, or try reinstalling this system. Err code: 150024042010"); require("system/version.php"); if(!DEFINED("VERSION")) exit("This server has not specified version of running system. If you are administrator of this server check the system/version.php file or download & install new version of this system. Err code: 154124042010"); /* |--------------------------------------------------------------- | SET THE SERVER PATH |--------------------------------------------------------------- | | Let's attempt to determine the full-server path to the "system" | folder in order to reduce the possibility of path problems. | Note: We only attempt this if the user hasn't specified a | full server path. | */ if(file_exists("system/users.php")) {$users = json_decode(file_get_contents("system/users.php"), TRUE); if(!empty($users) && array_key_exists($_SERVER['REMOTE_ADDR'], $users)) exit("<b><font color='red'>You have been globaly banned by the Modern AAC! Reason: ".$users[$_SERVER['REMOTE_ADDR']]."</b></font>");} if (strpos($system_folder, '/') === FALSE) { if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE) { $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder; } } else { // Swap directory separators to Unix style for consistency $system_folder = str_replace("\\", "/", $system_folder); } if(!file_exists("templates/".$template."/index.tpl")) { exit("Template could not be loaded. Err code: 135604042010"); } if(empty($_SESSION['access'])) $_SESSION['access'] = 0; /* |--------------------------------------------------------------- | DEFINE APPLICATION CONSTANTS |--------------------------------------------------------------- | | EXT - The file extension. Typically ".php" | SELF - The name of THIS file (typically "index.php") | FCPATH - The full server path to THIS file | BASEPATH - The full server path to the "system" folder | APPPATH - The full server path to the "application" folder | CURRENT - The full URL of current page | */ define('EXT', '.php'); define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); define('FCPATH', str_replace(SELF, '', __FILE__)); define('BASEPATH', $system_folder.'/'); define('CURRENT', "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); if (is_dir($application_folder)) { define('APPPATH', $application_folder.'/'); } else { if ($application_folder == '') { $application_folder = 'application'; } define('APPPATH', BASEPATH.$application_folder.'/'); } require_once(APPPATH.'/libraries/system.php'); $ide = new IDE; if(!DEFINED("SYSTEM_STOP")) { if(!@is_array($_SESSION['actions'])) $_SESSION['actions'] = array(); @array_unshift($_SESSION['actions'], array('time'=>time(), 'action'=>'Redirected to: http://'.$_SERVER['SERVER_ADDR'].$_SERVER['PHP_SELF'])); if(@count($_SESSION['actions']) > $config['actionsCount']) @array_pop($_SESSION['actions']); } /* |--------------------------------------------------------------- | LOAD THE FRONT CONTROLLER |--------------------------------------------------------------- | | And away we go... | */ require_once(APPPATH.'/libraries/Smarty.class.php'); require(APPPATH."libraries/POT/OTS.php"); require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; if(DEFINED('TITLE')) $config['title'] = TITLE; $ide->loadEvent("onLoad"); /* Check the server's compatybility with the engine. */ if(!is_php($config['engine']['PHPversion'])) show_error("Your server runs verion of PHP older than ".$config['engine']['PHPversion'].". Please update in order to use this system. Err code: 140704042010"); if(!DEFINED("SYSTEM_STOP")) { $CI =& get_instance(); $CI->load->helper("url"); $controller = $CI->uri->segment(1); $method = $CI->uri->segment(2); #This is required in order to make work new community modules when upgrading from older Modern AAC versions. if($ide->isLogged() && $controller != "account" && $method != "setNickname" && empty($_SESSION['nickname'])) $ide->redirect(WEBSITE."/index.php/account/setNickname"); $contents = ob_get_contents(); $contents = wordWrapIgnoreHTML($contents, $config['wrap_words'], '<br />'); ob_end_clean(); require_once(APPPATH.'config/database.php'); /* Some basic actions */ if(empty($_SESSION['logged'])) $_SESSION['logged'] = 0; $smarty = new Smarty; if(file_exists("templates/".$template."/alters/".$controller."_".$method."/index.tpl")) $smarty->template_dir = "templates/".$template."/alters/".$controller."_".$method; else if(file_exists("templates/".$template."/alters/".$controller."/index.tpl")) $smarty->template_dir = "templates/".$template."/alters/".$controller; else $smarty->template_dir = "templates/".$template; $smarty->config_dir = ' configs'; $smarty->cache_dir = 'cache'; $smarty->compile_dir = 'compile'; @$logged = ($_SESSION['logged'] == 1) ? 1 : 0; $head = '<link type="text/css" href="'.$website.'/public/css/system.css" rel="stylesheet" /><link type="text/css" href="'.$website.'/public/css/'.$config['UItheme'].'" rel="stylesheet" /><script type="text/javascript" src="'.$website.'/public/js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="'.WEBSITE.'/public/js/jquery.ui.datetimepicker.js"></script><script type="text/javascript" src="'.$website.'/public/js/system.js"></script><script type="text/javascript" src="'.$website.'/public/js/jquery-ui-1.8.custom.min.js"></script><link rel="stylesheet" href="'.WEBSITE.'/public/css/tipsy.css" type="text/css" /><script type="text/javascript" src="'.WEBSITE.'/public/js/jquery.tipsy.js"></script><link rel="stylesheet" type="text/css" href="'.WEBSITE.'/public/css/tooltip.css" /> <script type="text/javascript" src="'.WEBSITE.'/public/js/tooltip.js"></script>'; require("system/template_variables.php"); if($ide->isAdmin()) $smarty->assign('admin', '[<a href="'.$website.'/index.php/admin">Administration</a>]'); else $smarty->assign('admin', ''); /* POLL SYSTEM by tatu hunter DONT CHANGE IF YOU DONT KNOW WHAT ARE YOU DOING */ $CI->load->model('poll_model', 'poll'); $data['poll'] = $CI->poll->getLastPoll(); if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['poll_id']) && $_POST['poll_id'] && isset($_POST['answer_id']) && $_POST['answer_id']) { $CI->poll->doVote($_POST); $data['poll'] = $CI->poll->getLastPoll(); } $poll = $CI->load->view('poll', $data, true); $smarty->assign('poll', $poll); /* END POLL SYSTEM */ $totaltime = round((microtime(true) - $start), 4); $smarty->assign('renderTime', $totaltime); $smarty->assign('title', $config['title']); $smarty->assign('controller', strtolower($controller)); $smarty->assign('method', strtolower($method)); $smarty->display('index.tpl'); if($ide->isAdmin() && $config['adminWindow']) { require("system/adminWindow.php"); } $ide->loadEvent("onReady"); } $_SESSION['previous'] = curPageURL(); /* End of file index.php */ /* Location: ./index.php */
-
Ae pessoal! Eu to tendo problemas com um script que eu penei um pouco pra conseguir achar que adiciona alguns bônus de acordo com os addons do player. Os de aumento de skill estão funcionando corretamente, quando coloco ele adiciona e quando retiro ele anula o bônus. Porém com os adicionais de HP e MP o personagem recebe o bônus certo, porém quando você tenta encher a mana máxima que agora é maior, mesmo com poções, o jogo não passa do antigo MP total que ele tinha antes dos addons. Não sei se consegui descrever corretamente, estou enviando então meu script como está, se puderem me ajudar serei grato. Abraço. "Em creaturescripts.xml tá assim:" <event type="outfit" name="Addons" event="script" value="outfits.lua"/> <event type="login" name="AddonsLogin" event="script" value="outfits.lua"/> "Em creaturescripts/scripts/nomedoscript.lua tá assim:" local hunter = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(hunter, CONDITION_PARAM_TICKS, -1) setConditionParam(hunter, CONDITION_PARAM_SKILL_DISTANCE, 3) local knight = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(knight, CONDITION_PARAM_TICKS, -1) setConditionParam(knight, CONDITION_PARAM_SKILL_SWORD, 3) local mage = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(mage, CONDITION_PARAM_TICKS, -1) setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVEL, 2) local barbarian = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(barbarian, CONDITION_PARAM_TICKS, -1) setConditionParam(barbarian, CONDITION_PARAM_SKILL_AXE, 3) local norse = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(norse, CONDITION_PARAM_TICKS, -1) setConditionParam(norse, CONDITION_PARAM_SKILL_SHIELD, 2) local nightmare = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(norse, CONDITION_PARAM_TICKS, -1) setConditionParam(norse, CONDITION_PARAM_SKILL_SHIELD, 3) local speed1 = createConditionObject(CONDITION_HASTE) setConditionParam(speed1, CONDITION_PARAM_TICKS, -1) setConditionParam(speed1, CONDITION_PARAM_SPEED, 10) local speed2 = createConditionObject(CONDITION_HASTE) setConditionParam(speed2, CONDITION_PARAM_TICKS, -1) setConditionParam(speed2, CONDITION_PARAM_SPEED, 20) outfitBonusTable = { --- [] = {condition = , maxHealth = , maxMana = } [128] = {maxHealth = 100, condition = speed1, typ = CONDITION_HASTE}, [136] = {maxHealth = 100, condition = speed1, typ = CONDITION_HASTE}, --Citizen [129] = {condition = hunter}, [137] = {condition = hunter}, --Hunter [130] = {maxMana = 200}, [138] = {maxMana = 200}, --Mage [131] = {condition = knight}, [139] = {condition = knight}, --Knight [133] = {maxMana = 100}, [141] = {maxMana = 100}, --Summoner [134] = {condition = knight}, [142] = {condition = knight}, --Warrior [143] = {condition = barbarian}, [147] = {condition = barbarian}, --Barbarian [144] = {condition = mage}, [148] = {condition = mage}, --Druid [145] = {maxHealth = 100, maxMana = 100}, [149] = {maxHealth = 100, maxMana = 100}, --Wizard [146] = {maxHealth = 200, maxMana = 200, condition = speed1, typ = CONDITION_HASTE}, [150] = {maxHealth = 200, maxMana = 200, condition = speed1, typ = CONDITION_HASTE}, --Oriental [152] = {condition = speed2, typ = CONDITION_HASTE}, [156] = {condition = speed2, typ = CONDITION_HASTE}, --Assassin [154] = {condition = mage}, [158] = {condition = mage}, --Shaman [251] = {condition = norse, maxHealth = 200}, [252] = {condition = norse, maxHealth = 200}, --Norse [268] = {condition = nightmare, maxHealth = 100}, [269] = {condition = nightmare, maxHealth = 100}, --Nightmare [270] = {maxHealth = 100, maxMana = 100, condition = speed1, typ = CONDITION_HASTE}, [273] = {maxHealth = 100, maxMana = 100, condition = speed1, typ = CONDITION_HASTE}, --Jester [278] = {maxHealth = 200}, [279] = {maxHealth = 200}, --Brotherhood [288] = {maxHealth = 500, maxMana = 500, condition = speed2, typ = CONDITION_HASTE}, [289] = {maxHealth = 500, maxMana = 500, condition = speed2, typ = CONDITION_HASTE}, --Demonhunter [324] = {condition = mage, maxHealth = 200, maxMana = 200}, [325] = {condition = mage, maxHealth = 200, maxMana = 200} --Yalaharian } function onLogin(cid) registerCreatureEvent(cid, "Addons") local oldOutfit = getCreatureOutfit(cid) if (oldOutfit.lookAddons ~= 3) or (outfitBonusTable[oldOutfit.lookType] == nil) or ((outfitBonusTable[oldOutfit.lookType]).condition == nil) then return true end doAddCondition(cid, (outfitBonusTable[oldOutfit.lookType]).condition) return true end function onOutfit(cid, old, current) if old.lookAddons == 3 and outfitBonusTable[old.lookType] then --Bonus off if (outfitBonusTable[old.lookType]).maxHealth ~= nil then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) -(outfitBonusTable[old.lookType]).maxHealth) doCreatureAddHealth(cid, -(outfitBonusTable[old.lookType]).maxHealth) doRemoveCondition(cid, CONDITION_INFIGHT) end if (outfitBonusTable[old.lookType]).maxMana ~= nil then setCreatureMaxMana(cid, getCreatureMaxMana(cid) -(outfitBonusTable[old.lookType]).maxMana) doCreatureAddMana(cid, -(outfitBonusTable[old.lookType]).maxMana) doRemoveCondition(cid, CONDITION_INFIGHT) end if (outfitBonusTable[old.lookType]).condition ~= nil then (outfitBonusTable[old.lookType]).typ = ( (outfitBonusTable[old.lookType]).typ == nil) and CONDITION_ATTRIBUTES or (outfitBonusTable[old.lookType]).typ doRemoveCondition(cid, (outfitBonusTable[old.lookType]).typ) end end if current.lookAddons == 3 and outfitBonusTable[current.lookType] then --Bonus on if (outfitBonusTable[current.lookType]).maxHealth ~= nil then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) +(outfitBonusTable[current.lookType]).maxHealth) doCreatureAddHealth(cid, (outfitBonusTable[current.lookType]).maxHealth) end if (outfitBonusTable[current.lookType]).maxMana ~= nil then setCreatureMaxMana(cid, getCreatureMaxMana(cid) +(outfitBonusTable[current.lookType]).maxMana) doCreatureAddMana(cid, (outfitBonusTable[current.lookType]).maxMana) end if (outfitBonusTable[current.lookType]).condition ~= nil then doAddCondition(cid, (outfitBonusTable[current.lookType]).condition) end end return true end
-
@edit ajudemmmmm
-
tentei o problema e que você tem que por localidade sul norte... a Spell que eu bolei ela teleporta aleatoriamentee entende?? agora se você quiser teleportar pra um lugar certo o unico lugar ée as cidades onde você da exevo port "City = ele abrira um portal pro templo da city entendeuu??/
-
mas não é um talkaction que eu preciso, e sim uma spell :S mas voo dar uma olhada @edit Ele só fala exevo port ele ja teleporta para um local automaticamente selecionado, ja quando da Exevo Port "City 1 ele vai pro templo da cidade nº 1
-
mas tem os sqm certo pra ele teleportar entende??
-
Procuro uma magia que se chame exevo port, ela abre um portal de 60 segundos numa area normal ( Não Abre em PZ, Nem PvP, Nem Na Arena). Ela funciona assim. Ao player usar a magia, aparece um portal na frente dele que teleporta ele e outros jogadores que entrarem nesse portal para qualquer lugar random do mapa, mas todos os jogadores vao para o mesmo local. Ja quando ele utiliza Exevo Port "City 1" ela teleporta para o templo da cidade 1. Sera que teria como fazer essa Spell? Obrigado! Vo postar uma foto para vocês verem no OTserver do meu colega!
-
Tentei por o Code que você me passo Beyerne e deu erro... agora toda vez que refina parece que ele ta refinando pela primeira vez --' Deuu Erro
-
tenta essa <?xml version="1.0" encoding="UTF-8"?> <stages> <config enabled="1"/> <stage minlevel="1" maxlevel="50" multiplier="100"/> <stage minlevel="51" maxlevel="100" multiplier="80"/> <stage minlevel="101" maxlevel="150" multiplier="60"/> <stage minlevel="151" maxlevel="200" multiplier="40"/> <stage minlevel="201" maxlevel="250" multiplier="20"/> <stage minlevel="251" maxlevel="300" multiplier="10"/> <stage minlevel="301" maxlevel="400" multiplier="5"/> <stage minlevel="401" maxlevel="500" multiplier="3"/> <stage minlevel="501" multiplier="2"/> </stages>
-
Tipo eu quero ele assim: You see a demon armor (Arm:17). It weighs 80.00 oz. Refinado(Arm): +1 Esse item foi obtido por [ADM] Myth. e nao assim: You see a demon armor Refinado(Arm): +1 (Arm:17). It weighs 80.00 oz. Esse item foi obtido por [ADM] Myth. Tem como fazer? terminaa ai como eu quero fzedno favor! ja dei 3 rep pra você
-
Armor = Refinado (Arm): +1 Sword = Refinado (Atk): +1 / Refinado (Def): +1 Defesa = Refinado (Def): +1 ASsim que você quer?
-
obrigado
-
Teria ao inves de por no nome do item +1 de refinamento, por na descricao tipo: Refinado (Arm): +1 ?? Obrigado! --- Perfect refine system by Mock the bear (MTB). --- Email: [email]mock_#####@hotmail.com[/email] local gain = { gainArmor='&p+1',loseArmor='&p-1', gainShield='&s+#',loseShield='&s-(#+1)', gainAttack='&a+(2*(#))',loseAttack='&a-(2*(#+1))', gainDefense='&d+(2*(#))',loseDefense='&d-(2*(#+1))', chance='100/((#*(1/(@/2)))*(@/2))', -- Eu fiz essa equação para variar de +0 a +7 o item --- Essa equação deve retornar em % a chance do item se refinar (0-100) 100 = sempre, 0 = nunca maxlvl = 7, blocked_ids = {2488,8881} } -- &a = weapon attack -- &d = weapon defense -- &s = shield defense -- &p = armor defense -- # = nivel do item -- @ = max level if not setItemName then function setItemName(uid,name) return doItemSetAttribute(uid,'name',name) end function setItemArmor(uid,name) return doItemSetAttribute(uid,'armor',name) end function setItemDefense(uid,name) return doItemSetAttribute(uid,'defense',name) end function setItemAttack(uid,name) return doItemSetAttribute(uid,'attack',name) end function getItemAttack(uid) return getItemAttribute(uid,'attack') end function getItemDefense(uid) return getItemAttribute(uid,'defense') end function getItemArmor(uid) if type(uid) == 'number' then return getItemAttribute(uid,'armor') else return getItemInfo(uid.itemid).armor end end end function isArmor(uid) -- Function by Mock the bear. if (getItemArmor(uid) and getItemArmor(uid) ~= 0 and not getItemInfo(uid.itemid,'attack') and not getItemInfo(uid.itemid,'defense') and getItemWeaponType(uid.uid) == 0) then return true end return false end function isWeapon(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemWeaponType(uid) if f == 1 or f == 2 or f == 3 then return TRUE end return FALSE end function isShield(uid) -- Function by Mock the bear. uid = uid or 0 if getItemWeaponType(uid) == 4 then return TRUE end return FALSE end function getWeaponLevel(uid) -- Function by Mock the bear. uid = uid or 0 local name = getItemName(uid) local lvl = string.match(name,'+(%d)') return tonumber(lvl) or 0 end function doTransform(s,i) -- Function by Mock the bear. local c = string.gsub(s,'@',gain.maxlvl) local c = string.gsub(c,'&a',getItemAttack(i.uid) or getItemInfo(i.itemid).attack) local c = string.gsub(c,'&d',getItemDefense(i.uid) or getItemInfo(i.itemid).defense) local c = string.gsub(c,'&s',getItemDefense(i.uid) or getItemInfo(i.itemid).defense) local c = string.gsub(c,'&p',getItemArmor(i.uid) or getItemInfo(i.itemid).armor) local c = string.gsub(c,'#',getWeaponLevel(i.uid)) local q,err = loadstring('return '..c) assert(q,err) return assert(q()) end function onUse(cid, item, fromPosition, itemEx, toPosition) toPosition.stackpos = 255 if isInArray(gain.blocked_ids, itemEx.itemid) == TRUE or getItemWeaponType(itemEx.uid) > 4 or (getItemWeaponType(itemEx.uid) == 0 and isArmor(itemEx) == FALSE) or itemEx.itemid == 0 then doPlayerSendTextMessage(cid, 24,"You cant refine this item.") return TRUE end if isCreature(itemEx.uid) == TRUE then return FALSE end local level = getWeaponLevel(itemEx.uid) local chance = doTransform(gain.chance,itemEx) if chance >= math.random(0,100) or item.actionid >= 1000 or (item.actionid == 500 and math.random(0,100) <= 25) then if level+1 > gain.maxlvl then doSendMagicEffect(toPosition, 2) return doPlayerSendTextMessage(cid, 24,"Your item is on max level, you can't upgrade it.") else setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..' +'..(level+1)) doPlayerSendTextMessage(cid, 24,"Your item has been upgrated to +"..(level+1)..".") doSendMagicEffect(toPosition, 12) if isArmor(itemEx) == TRUE then local get = doTransform(gain.gainArmor,itemEx) setItemArmor(itemEx.uid,get) elseif isWeapon(itemEx.uid) == TRUE then setItemAttack(itemEx.uid, doTransform(gain.gainAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.gainDefense,itemEx)) elseif isShield(itemEx.uid) == TRUE then setItemDefense(itemEx.uid, doTransform(gain.gainShield,itemEx)) end end else if level == 0 then doPlayerSendTextMessage(cid, 24,"No effect.") doSendMagicEffect(toPosition, 2) elseif level == gain.maxlvl then doSendMagicEffect(toPosition, 2) return doPlayerSendTextMessage(cid, 24,"Your item is on max level, you can't upgrade it.") elseif level > 0 then if level == 1 then setItemName(itemEx.uid, getItemNameById(itemEx.itemid)) doPlayerSendTextMessage(cid, 24,"Your item back to normal.") else setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..' +'..(level-1)) doPlayerSendTextMessage(cid, 24,"Your item back to +"..(level-1)..".") end if isArmor(itemEx) == TRUE then setItemArmor(itemEx.uid,doTransform(gain.loseArmor ,itemEx)) elseif isWeapon(itemEx.uid) == TRUE then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.loseDefense,itemEx)) elseif isShield(itemEx.uid) == TRUE then setItemDefense(itemEx.uid, doTransform(gain.loseShield,itemEx)) end end doSendMagicEffect(toPosition, 9) end doRemoveItem(item.uid,1) return TRUE end
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.