Synth
Exalted Member
Hello Emudevs,today i'm going to share a script called "Points for Tokens" made by mthsena.
I find any bug or error on compile feel free to ask me.
Thank you!
Best regards,
Synth !
Script info:
●Exchange your donor or voter points from website into tokens in game.
●This script works with any website with the column `dp` and `vp` on table `auth.account`.
●NOTE:If your website has a column in other table, you need change some queries on code,otherwise your server will be crashed.
SQL:
Script:
Points for Tokens - C++ - Pastebin
●Exchange your donor or voter points from website into tokens in game.
●This script works with any website with the column `dp` and `vp` on table `auth.account`.
●NOTE:If your website has a column in other table, you need change some queries on code,otherwise your server will be crashed.
SQL:
-- Trader - Donor & Voter
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES('900000','0','0','0','0','0','25900','0','0','0','Trader - Donor & Voter','Emudevs',NULL,'0','80','80','0','35','35','1','1','1.14286','4','3','0','0','0','0','1','0','0','1','0','0','0','0','0','0','0','0','0','0','0','0','4','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','','0','3','1','1','1','1','0','0','0','0','0','0','0','0','1','0','0','Donor_Voter_Trader','1');
Script:
Points for Tokens - C++ - Pastebin
I find any bug or error on compile feel free to ask me.
Thank you!
Best regards,
Synth !
Last edited: