Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: MUEMU S12 EP2 Change Item Price  (Visto 458 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline dannybest Posteado: April 02, 2021, 03:34:18 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 3
  • Gracias recibida: 225
  • ro
Hi there, I got the server pack S12 from here https://tuservermu.com.ve/index.php?topic=38710.0, and I want to change some prices, like here in zzzitem.cpp, I changed the formula multiplying by 1 i tried to make to read from PriceSettings, but seems no modifications work, so maybe someone know what I am doing wrong?

zzzitem.cpp
Code: [Select]
if (this->m_Type == ITEMGET(4, 15)) // Arrow
{
int levelgold = 70;

switch (this->m_Level)
{
case 1:
levelgold = 1200;
break;
case 2:
levelgold = 2000;
break;
case 3:
levelgold = 2800;
break;
}

if (this->m_Durability > 0.0f)
{
Gold = levelgold * this->m_Durability / p->Durability;
}
}

else if (this->m_Type == ITEMGET(4, 7)) // Bolts
{
int levelgold;

if (this->m_Durability > 0.0f)
{
levelgold = 100;

switch (this->m_Level)
{
case 1:
levelgold = 1400;
break;
case 2:
levelgold = 2200;
break;
case 3:
levelgold = 3000;
break;
}

Gold = levelgold * this->m_Durability / p->Durability;
}
}


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
2940 Views
Last post May 29, 2019, 01:33:35 AM
by fukpim
0 Replies
580 Views
Last post March 19, 2020, 11:51:01 PM
by awayvn
1 Replies
1536 Views
Last post September 18, 2020, 12:03:21 AM
by ZabiinoOo
0 Replies
467 Views
Last post March 27, 2021, 02:24:31 AM
by judakiss21
0 Replies
677 Views
Last post April 09, 2021, 08:19:43 AM
by spider