• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

PREMIUM POINTS NEW ACCS

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
Hello, how put for all new players win 100 premium points??

I tested this query and dont work:

ALTER TABLE `accounts`CHANGE`premium_points``premium_points`INT(11) NOT NULL DEFAULT '100';


please? thanks
 
In login.lua script located in creaturescripts/scripts/other/login.lua just add something like this:
Code:
db.query("UPDATE ´accounts´ SET ´premium_points´ = 100 WHERE ´id´ = "..player:getAccountId()..";")
Obviously you have to add a condition to avoid get 100 points every time that you log in the game, something like an storage or something else.
 
Easily way to add points to the samples and new players will auto get points

If you dont know how to edit samples ask someone to do it for you
 
Back
Top