Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Chaos Castle Fix - Rewards coins Only to Winner  (Visto 328 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Watuyusei Posteado: September 13, 2025, 03:22:34 AM | Modificado: September 13, 2025, 10:58:05 PM by Watuyusei

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 31
  • Gracias recibida: 251
  • 00
If you have reward coins this works to you. Chaos Castle was giving coin rewards to all participants, even when the event failed.

*Chaos Castle was giving out coins to everyone, whether they finished the event or not.





Solution
Modify the code so only the winner receives coins when the event completes successfully.

Add Coin Reward Function
ChaosCastle.cpp
Add this function after GiveUserRewardItem:


Modify SetState_CLEAN Function
ChaosCastle.cpp
REPLACE the entire SetState_CLEAN function with:


Add Header Declarations
ChaosCastle.h
Add this in the private section:


Add this function declaration in public section:


Add this after section 2 (around line 170):


Result
- Only the winner receives coins
- Other participants receive only experience and score
- If no valid winner, no rewards are given
- Fair competition system
- Prevents exploitation

*If u missing code or need some milk let me know.





Online elfazor #1 Posteado: September 13, 2025, 10:30:51 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 8
  • it
Thank you for your contribution. I would like to say that usually in season 6 files like in devi square or blood castle, prizes are given to all participants either in exp or in coins. This is all configurable from the file.dat of events. So I wouldn't define a fix but a new configuration, possible even without working on the source.  woot

Gracias:


Offline Watuyusei #2 Posteado: September 13, 2025, 11:04:01 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 31
  • Gracias recibida: 251
  • 00
Thank you for your contribution. I would like to say that usually in season 6 files like in devi square or blood castle, prizes are given to all participants either in exp or in coins. This is all configurable from the file.dat of events. So I wouldn't define a fix but a new configuration, possible even without working on the source.  woot

That's correct, but for now I tested on ssemu and cc works like cc and bc about the reward coins, usually u get coins for participation but with this not anymore xd and ty for ur feedback


Online chuvito #3 Posteado: September 13, 2025, 02:57:38 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 442
  • Gracias recibida: 2049
  • pe
Thank you for your contribution. I would like to say that usually in season 6 files like in devi square or blood castle, prizes are given to all participants either in exp or in coins. This is all configurable from the file.dat of events. So I wouldn't define a fix but a new configuration, possible even without working on the source.  woot
recuerda que no todos los s6 manejan dicho archivos y ademas expande para hacer nuevas cosas


Offline Watuyusei #4 Posteado: September 13, 2025, 03:49:46 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 31
  • Gracias recibida: 251
  • 00
Thank you for your contribution. I would like to say that usually in season 6 files like in devi square or blood castle, prizes are given to all participants either in exp or in coins. This is all configurable from the file.dat of events. So I wouldn't define a fix but a new configuration, possible even without working on the source.  woot
recuerda que no todos los s6 manejan dicho archivos y ademas expande para hacer nuevas cosas

Si, lo bonito de la programación es que puedes adaptar siguiendo la lógica!


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1725 Views
Last post June 18, 2017, 05:41:11 PM
by basthialbo
3 Replies
7409 Views
Last post February 02, 2019, 06:16:46 PM
by koito89
5 Replies
5846 Views
Last post November 28, 2018, 07:33:29 PM
by GX_KYO
0 Replies
829 Views
Last post July 11, 2020, 12:16:18 AM
by ZEYRUS
1 Replies
539 Views
Last post February 12, 2021, 12:38:18 AM
by ZabiinoOo