Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Looking for script SQL Reset -> get credits  (Visto 2318 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline warren12 Posteado: June 07, 2024, 06:53:35 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 1
  • us
Sup guys I’m looking for script for Sql
When player make a reset he got immediately X credits to his account

Please anyone can create or publish script like that ?

Season 3 SSEMU

Gracias:


Offline warren12 #1 Posteado: June 08, 2024, 01:59:55 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 1
  • us

Offline warren12 #2 Posteado: June 08, 2024, 07:27:10 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 1
  • us
I mean to Query for Sql can I running please UP


Online Toast #3 Posteado: July 25, 2024, 04:11:55 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 1
  • gb
MuOnline Database -> Programmability -> Stored Procedures

Modify: dbo.WZ_SetResetInfo
Add the following:

UPDATE Character SET ResetCount=@reset WHERE AccountID=@account AND Name=@Name
UPDATE PcPointData Set PcPoint=PcPoint +<Reward_Value> WHERE AccountID=@account

Example: 1reset = 20 credits

UPDATE PcPointData Set PcPoint=PcPoint +20 WHERE AccountID=@account

Gracias:


Offline importantshell #4 Posteado: December 16, 2024, 04:25:20 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 0
  • us
To create a script that grants a player credits immediately upon making a reset, you can use SQL combined with triggers or procedural logic, depending on your database system.


Offline mhaeme #5 Posteado: December 20, 2024, 01:01:48 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 0
  • au
You can run this query right after the reset function is triggered. Just make sure you replace `X` with the number of credits you want to award and `PlayerID` with the relevant player identifier.

If you're implementing this in a game server script, ensure that this SQL command executes every time a player performs a reset. It’s always good practice to back up your database before running any updates, just in case!



Thanks,

Miss Walker, Parramatta Carpet Cleaning


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
2002 Views
Last post January 06, 2019, 11:40:54 PM
by dreams
6 Replies
3628 Views
Last post September 12, 2019, 12:07:15 PM
by Kosh
6 Replies
6159 Views
Last post August 14, 2022, 10:01:45 PM
by Shrimp
0 Replies
538 Views
Last post July 20, 2023, 05:29:45 PM
by CAPITOL
6 Replies
3804 Views
Last post September 10, 2023, 12:10:35 PM
by mehralion