Ir para conteúdo
View in the app

A better way to browse. Learn more.

priston.pro

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vale - Level

Postado

Boa tarde, estou usando a source do world , acredito que seja a basica, tem vale level unico "BI298". Alguem poderia me dizer como adicionar os vale pra level determinado?

Resolvido por UserH

Ir para a solução

Featured Replies

Postado
2 horas atrás, UserH disse:

Boa tarde, estou usando a source do world , acredito que seja a basica, tem vale level unico "BI298". Alguem poderia me dizer como adicionar os vale pra level determinado?

cara, tem diversas maneiras, mas antes de tudo, olha como a função AddLevel() funciona n lembro se na world é esse o nome dela

ai vc tem essa opção (creio que seja a "melhor"):

na função de click de do vale level, colocar uma verificação para saber se o char está no level que você quer que use, exemplo sincharlevel >= 30 && sincharlevel < 40, ai ele só vai poder usar entre os niveis 30 a 39, seta o xp/level e faz as checagens depois de adicionar qualquer nivel ou mexer no xp do personagem.

ta querendo correção, proteção ou dev bom? chega mais 

https://www.facebook.com/PristonDevs

https://www.youtube.com/@PristonDevs

Postado
  • Autor
2 horas atrás, b4ruc disse:

cara, tem diversas maneiras, mas antes de tudo, olha como a função AddLevel() funciona n lembro se na world é esse o nome dela

ai vc tem essa opção (creio que seja a "melhor"):

na função de click de do vale level, colocar uma verificação para saber se o char está no level que você quer que use, exemplo sincharlevel >= 30 && sincharlevel < 40, ai ele só vai poder usar entre os niveis 30 a 39, seta o xp/level e faz as checagens depois de adicionar qualquer nivel ou mexer no xp do personagem.

Obg vou ver!

Postado
  • Autor
  • Solução

Primeiro Obrigado ao B4ruc.

Seguindo raciocionio fiz assim

Lembrando Source world, acho q a mais basica.

No Visual procurar "BI298" ,vale level unico.

vai achar

{ sinBI2 | sin98, "Vale Level", "BI298", ITEMSIZE 2, ITEMSIZE 1, "Premium", ITEM_CLASS_ECORE, "BI298", 0, SIN_SOUND_POTION },

nessa source o item BI297 esta desativado, então

add nos dois side :

{ sinBI2 | sin97, "Vale Level Superior", "BI297", ITEMSIZE 2, ITEMSIZE 1, "Premium", ITEM_CLASS_ECORE, "BI297", 0, SIN_SOUND_POTION },

no serverside procurar:

if (InvenItem[SelectInvenItemIndex - 1].sItemInfo.CODE == (sinBI2 | sin98))

Adicionar:

if (InvenItem[SelectInvenItemIndex - 1].sItemInfo.CODE == (sinBI2 | sin98)) { if (chaPremiumitem.bUpdateTimeDelayFlag) { cMessageBox.ShowMessage(MESSAGE_NOT_DELAYTIME); return; } // trava: só funciona se o nível atual for MENOR que 110

if (sinChar->Level < 110) { DeleteInvenItemToServer(InvenItem[SelectInvenItemIndex - 1].sItemInfo.CODE, InvenItem[SelectInvenItemIndex - 1].sItemInfo.ItemHeader.Head, InvenItem[SelectInvenItemIndex - 1].sItemInfo.ItemHeader.dwChkSum); CheckCharForm(); sinChar->Level++; SetExp64(sinChar, ExpLevelTable[sinChar->Level - 1]); CodeXorCharInfo_Exp(); StartEffect(lpCurPlayer->pX, lpCurPlayer->pY + 32 fONE, lpCurPlayer->pZ, EFFECT_LEVELUP1); esPlaySound(7, 400); ReformCharForm(); SendPlayUpdateInfo(); SaveGameData(); cCharStatus.CheckLevel(); cMessageBox.ShowMessage("Você upou +1 nível!"); haCastleSkillUseFlag = 1; } else { cMessageBox.ShowMessage("Este vale só pode ser usado até o nível 110!"); } }

if (InvenItem[SelectInvenItemIndex - 1].sItemInfo.CODE == (sinBI2 | sin97)) { if (chaPremiumitem.bUpdateTimeDelayFlag) { cMessageBox.ShowMessage(MESSAGE_NOT_DELAYTIME); return; } // Nova trava: exige que o jogador seja no MÍNIMO nível 110 e menor que o máximo if (sinChar->Level >= 110 && sinChar->Level < CHAR_LEVEL_MAX) { DeleteInvenItemToServer(InvenItem[SelectInvenItemIndex - 1].sItemInfo.CODE, InvenItem[SelectInvenItemIndex - 1].sItemInfo.ItemHeader.Head, InvenItem[SelectInvenItemIndex - 1].sItemInfo.ItemHeader.dwChkSum); CheckCharForm(); sinChar->Level++; SetExp64(sinChar, ExpLevelTable[sinChar->Level - 1]); CodeXorCharInfo_Exp(); StartEffect(lpCurPlayer->pX, lpCurPlayer->pY + 32 fONE, lpCurPlayer->pZ, EFFECT_LEVELUP1); esPlaySound(7, 400); ReformCharForm(); SendPlayUpdateInfo(); SaveGameData(); cCharStatus.CheckLevel(); cMessageBox.ShowMessage("Você upou +1 nível superior!"); haCastleSkillUseFlag = 1; } else if (sinChar->Level < 110) { cMessageBox.ShowMessage("Você precisa ser nível 110 ou maior para usar este vale!"); } else if (sinChar->Level == CHAR_LEVEL_MAX) { cMessageBox.ShowMessage("Você já está no nível máximo!"); } }

Add o item bi297 com o nome que preferir na openitem

Add no seu cliente full sinimage/dropitem/premiun itbi297.bmp

ai no caso ta o vale normal bi298 ate 110 e o bi297 do 110 ate o seu level cap, aqui ta 150.

Visitante
Este tópico está impedido de receber novos posts.

Account

Navigation

Pesquisar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.