Ir para conteúdo

alissonxzff2

Campones
  • Total de itens

    55
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que alissonxzff2 postou

  1. movement: <movevent type="StepIn" uniqueid="13540" event="script" value="vip.lua"/> vip.lua: function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Você não e vip II , faça a quest vip II ", msgWelcome = "Seja Bem Vindo a Area vip II." } if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end action: <action uniqueid="13541" script="vipchest.lua" /> vipchest.lua: -- function onUse(cid, item, frompos, item2, topos) if item.uid ==13541 then queststatus = getPlayerStorageValue(cid,13540) if queststatus == 1 then doPlayerSendTextMessage(cid,22,"Você jah pegou sua recompensa.") else doPlayerSendTextMessage(cid,22,"Voce agora é Baiak Vip. System Vip By .") doSendMagicEffect(topos,12) coins_uid = doPlayerAddItem(cid,2160,100) coins_uid = doPlayerAddItem(cid,2322,1) setPlayerStorageValue(cid,13540,1) end return 0 end return 1 end vejo no phpmyadmin o storage 13540 = 1 mas ele não passa mesmo assim do tile oque pode estar errado alguem sabe dizer? pfvr
  2. valeu cara, funcionou certinho ^^
  3. então, eu acho que nesse sistema vip que to usando não retira o [vip] da frente do jogador, então to tentando fazer com que quando logue, verifique se tem a storage da vip, se não tiver retirar o [vip] do nick.. mas não sei fazer o execute query db.executeQuery("UPDATE `players` SET `name` = '"..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") addEvent(doRemoveCreature, 5*1000, cid, true) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE) /\ esse ele usa o nome do personagem como base.. então não sei como fazer e tem um erro no script da vip também, ela adiciona duas vezes o [VIP] se já tiver.. alguem sabe?
  4. obrigado galera, deu certo ^^
  5. então, até logou agora, mas não apareceu a mensagem doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp") torne-se vip e ganhe.;.. vou testar com um amigo então, não deu certo, meu adm logou mas o character do meu amigo ficou entrando e saindo tipo teleportando mas não entra..
  6. que droga, não achei que era tão dificil )): algo deu errado, pior que não entendo nada de scripts.. comecei essa semana um projeto sozinho não loga os personagens, só aparece no executavel que logou e deslogou bem rapido
  7. não sei dizer, mas vou postar aqui: function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- dias que serão adicionados local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13704) local timenow = os.time() if getPlayerStorageValue(cid, 13704) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 13704, time) local quantity = math.floor((getPlayerStorageValue(cid, 13704) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) db.executeQuery("UPDATE `players` SET `name` = '[VIP] "..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") doPlayerAddAddons(cid, 1) addEvent(doRemoveCreature, 5*1000, cid, true) end return TRUE end function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Este lugar é só para vips, adquira sua vip no site..", msgWelcome = "Bem vindo a area vip, bom up.." } if getPlayerStorageValue(cid, 13704) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end
  8. line 6 then expected near valor no executavel obg pela atenção, você é rapido ^^ kkkk
  9. local expextra = 20 -- 20% de exp local storage = 123456 -- coloque sua storage aqui local valor = 1 -- valor da storage function onLogin(cid) if getPlayerStorageValue(cid, 1452369) == 1 valor then -- verificação para adicionar a xp só uma vez /\ aqui eu não troco? só deixo uma storage que não usei ainda no caso? return true end if getPlayerStorageValue(cid, storage) >= valor then doPlayerSetExperienceRate(cid,expextra) doPlayerSendTextMessage(cid,21,"Você ganhou "..expextra.."% de exp por ser vip ") setPlayerStorageValue(cid, 1452369, 1) else doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp") end end se deixar só assim os que não forem mais vips será que vão ter o benefício?
  10. como faço pra colocar % de exp pra quem é vip no servidor, mas tipo... tem a vip normal de 3kk, a vip 2 que da acesso a mais uma area, e tem a donate, que quero implantar esse sistema de aumentar % de exp.. só que não é a vip do sistema que já veio, nem do gesior, é uma que eu fiz com storage mesmo, de permissão achei uns códigos aqui, mas acho que ele não declara minha situação: local expextra = 20 -- 20% de exp function onLogin(cid) if isVip(cid) == TRUE then <<< acho que não declara a minha vip por storage doPlayerSetExperienceRate(cid,expextra) doPlayerSendTextMessage(cid,21,"Você ganhou "..expextra.."% de exp por ser vip ") else doPlayerSendTextMessage(cid,21,"Torna-se vip e ganhe "..expextra.."% de exp") end end
  11. Obrigado bruno pela atenção eu resolvi hoje de tarde, era só executar isto no sql: INSERT INTO `player_skills` (`player_id`, `skillid`, `value`, `count`) VALUES (1, 0, 10, 0), (1, 1, 10, 0), (1, 2, 10, 0), (1, 3, 10, 0), (1, 4, 10, 0), (1, 5, 10, 0), (1, 6, 10, 0), (2, 0, 10, 0), (2, 1, 10, 0), (2, 2, 10, 0), (2, 3, 10, 0), (2, 4, 10, 0), (2, 5, 10, 0), (2, 6, 10, 0), (3, 0, 10, 0), (3, 1, 10, 0), (3, 2, 10, 0), (3, 3, 10, 0), (3, 4, 10, 0), (3, 5, 10, 0), (3, 6, 10, 0), (4, 0, 10, 0), (4, 1, 10, 0), (4, 2, 10, 0), (4, 3, 10, 0), (4, 4, 10, 0), (4, 5, 10, 0), (4, 6, 10, 0), (5, 0, 10, 0), (5, 1, 10, 0), (5, 2, 10, 0), (5, 3, 10, 0), (5, 4, 10, 0), (5, 5, 10, 0), (5, 6, 10, 0); Acho que não tava declarando as skills, mas criava assim mesmo.. ^^
  12. dá esse erro aqui quando tento criar o personagem no site Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\Program Files (x86)\xampp\htdocs\pot\OTS_Player.php:1866 Stack trace: #0 C:\Program Files (x86)\xampp\htdocs\accountmanagement.php(960): OTS_Player->getSkill(0) #1 C:\Program Files (x86)\xampp\htdocs\index.php(123): include('C:\Program File...') #2 {main} thrown in C:\Program Files (x86)\xampp\htdocs\pot\OTS_Player.php on line 1866 mesmo assim ele cria o char, mas da esse errinho chato, alguém pode me ajudar?
  13. deu certo cara, mais uma vez me salvou ^^ @Bruno minervino deu certo cara valeu, me salvou de novo então, acho que no ultimo não precisa mesmo.. mas obrigado deu certo agora ^^
  14. Já coloquei tudo certo no globalevnts e no script que coloquei na pasta script e não vai.. global: <globalevent name="falantp" interval="2" event="script" value="falantp.lua"/> (ja tentei interval 2000) script falantp.lua:
  15. acho que as duas vips estão em conflito, eu pago a vip1 (3kk) consigo entrar.. daí quando completo a quest da vip2 já não posso mais entrar na vip1 de novo movements da vip1 (data\movements\scripts): da vip2: só queria ter as duas sem conflito, ter a vip 2 e ainda poder acessar a 1 edit~ consegui galera, obrigado pela atenção s2, eu demoro mas acho kkkkkk ^^
  16. Aonde deveria estar essa linha?
  17. como posso ver se é? e como posso arrumar? ^^
  18. Tenho um baiak aqui daqueles que compra a vip dai tem a vip 2 que usa uma stone e adquire.. mas tem um problema, na hora que ativa a vip 2 a primeira some.. e isso não deveria acontecer né?
  19. consegui, em accountmanagement.php eu acho, mudei o idtown obg galera
  20. obrigado pela atenção, mas comecei a editar ontem não sei nada de onde ficam as coisas, diretórios e nem onde mecher no phpmyadmin eu manjei montar no 8.10 mas nessa epoca era so botar ip e botar no servlist e deu
  21. como eu arrumo o temple position quando os players morrem? to usando gesior, no caso tudo mysql, ja editei ate no config.lua do servidor mesmo mas nada. consegui apenas fazer com que os players criados loguem no templo, mas o player que morre fica dando "temple position is wrong."
  22. realmente, queria baixar.. mas o link bugou
  23. poisé, acabei de perceber isso... troquei pra sqlite e foi.. obg mano, vou procurar outro server ^^
  24. ta aparecendo isso na hora de deixar online agora line 37 $sqlitefile = $config['server']['sqliteDatabase']; ta me ajudando bastante, valeu e foi mal a incomodação kkkk
  25. então consegui fazer tudo isso, demorei até porque tive que reiniciar pra deixar o mesmo nome do computador, botei até o nome da pasta do server igual... mas mudei tudo no config.lua e agora não ta ficando on ta assim a config.lua: accountManager = "yes" namelockManager = "yes" newPlayerChooseVoc = "yes" newPlayerSpawnPosX = 160 newPlayerSpawnPosY = 54 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 0 generateAccountNumber = "no" redSkullLength = 50 * 62 * 70 * 90 blackSkullLength = 64 * 72 * 80 * 95 dailyFragsToRedSkull = 20 weeklyFragsToRedSkull = 50 monthlyFragsToRedSkull = 70 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = false notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 7 * 24 * 60 * 60 killsBanLength = 8 * 24 * 60 * 60 finalBanLength = 30 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = true maxViolationCommentSize = 200 violationNameReportActionType = 2 autoBanishUnknownBytes = false worldType = "pvp" protectionLevel = 50 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 20 * 700 huntingDuration = 60 * 1000 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = true removeWeaponAmmunition = false removeWeaponCharges = false removeRuneCharges = "no" whiteSkullTime = 5 * 10 * 100 noDamageToSameLookfeet = false showHealingDamage = true showHealingDamageForMonsters = true fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = false oldConditionAccuracy = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 10 stairhopDelay = 2 * 1000 pushCreatureDelay = 2 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true worldId = 0 ip = "177.156.166.88" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 841 motd = "Bem vindos ao Baiak Ganja \|/" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = false serverName = "Baiak Ganja" loginMessage = "Bom Divertimento e chapaceira" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "66531644" sqlDatabase = "database" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 ingameGuildManagement = true levelToFormGuild = 500 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 highscoreDisplayPlayers = 100 updateHighscoresAfterMinutes = 2 buyableAndSellableHouses = true houseNeedPremium = true bedsRequirePremium = true levelToBuyHouse = 1 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 1000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false timeBetweenActions = 200 timeBetweenExActions = 1000 checkCorpseOwner = true hotkeyAimbotEnabled = true maximumDoorLevel = 500 mapName = "Baiak Yurots" mapAuthor = "We Bass Drun Kill" randomizeTiles = true useHouseDataStorage = false storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false maxMessageBuffer = 4 bufferMutedOnSpellFailure = false dataDirectory = "data/" allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true disableOutfitsForPrivilegedPlayers = false bankSystem = true saveGlobalStorage = true displaySkillLevelOnAdvance = true spellNameInsteadOfWords = true emoteSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false monsterLootMessage = 3 monsterLootMessageType = 25 separateViplistPerCharacter = false ghostModeInvisibleEffect = false ghostModeSpellEffects = true idleWarningTime = 14 * 60 * 1000 idleKickTime = 1000 * 1000 * 10000 expireReportsAfterReads = 1 playerQueryDeepness = 2 maxItemsPerPZTile = 0 maxItemsPerHouseTile = 0 freePremium = true premiumForPromotion = true blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 8 experienceStages = "yes" rateExperience = 500 rateExperienceFromPlayers = 0 rateSkill = 80 rateMagic = 40 rateLoot = 2 rateSpawn = 2 rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 41 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 experienceShareActivity = 2 * 60 * 1000 globalSaveEnabled = false globalSaveHour = 8 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false deSpawnRange = 2 deSpawnRadius = 50 maxPlayerSummons = 0 teleportAllSummons = false teleportPlayerSummons = false ownerName = "We Bass Drun Raell's Kill's" ownerEmail = "[email protected]<script cf-hash='f9e31' type="text/javascript"> /* */</script>" url = "frozen-hell.net" location = "usa" displayGamemastersWithOnlineCommand = false adminLogsEnabled = false displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = false tentei mexer no gesior mesmo assim sem deixar online e apareceu isso Notice: Undefined index: sqliteDatabase in C:\xampp\htdocs\config-and-functions.php on line 37
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...