summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-02 23:32:29 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-02 23:32:29 -0300
commitf2099d16cd7343da7d56f89341db4ff32a31eac3 (patch)
tree32da64f9429f04ac426c8a4c3b909e4c308126f7 /npc/functions
parent48d3b32578cba10d14b56a4ab931b84e3ee3cad8 (diff)
downloadserverdata-jesusalva/MobPt.tar.gz
serverdata-jesusalva/MobPt.tar.bz2
serverdata-jesusalva/MobPt.tar.xz
serverdata-jesusalva/MobPt.zip
Another proposal.jesusalva/MobPt
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/mobpoint.txt36
1 files changed, 27 insertions, 9 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index a9d69af0..0bc7cef3 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -1,19 +1,37 @@
-// TMW2 Scripts
+// Evol Scripts
// Author: Crazyfefe
// Jesusalva
// Desc: Mob Points for Aidan & Ishi. You will gain MONSTER-LEVEL mob points.
+// This has been further modified since previous version
+// (commit 8e398042cea2ccd6ccacb1ec0acd47358b43fae5)
+// WildX said this would be only useful to give back stuff to players from
+// Legacy. This script supposes you have a way to weight everyone's
+// inventory, money, levels and etc., and have a way to write directly on
+// the acc_reg_num_db table.
+// Variables:
+// #MAX_MPP => Variable filled when you port a Legacy Account to Evol.
+// It holds the weighted value of your stuff from Legacy.
+// #MPQUEST => How many mob points you've acquired.
+// #Mobpt => How many unspent mob points you still have.
+// Rationale:
+// When you kill a monster, you get both a #Mobtpt and a #MPQUEST point.
+// You can only collect #MAX_MPP points, which is your Legacy account worth.
+// You can then trade #Mobpt points for rares.
+// The catch is that you can only use the 'points' attributed from your
+// account merge if you play the game and kill stuff. Simply porting the
+// account gives you absolutely nothing.
+// This should be reasonable enough to don't overreward nor underreward
+// players. It's strongly suggested that the items available for the Legacy
+// imports are solely decorative or otherwise easy to obtain (eg. money).
+// Adding powerful equipment etc. could cause balance concerns on long term.
function script mobpoint {
- if (!MPQUEST) goto L_Return;
- //if (killedrid < 1002) goto L_Return;
+ if (!#MAX_MPP || (#MPQUEST >= #MAX_MPP))
+ return;
- Mobpt = Mobpt + strmobinfo(3,killedrid);
-
-
-L_Return:
- //set @value, 0;
+ #Mobpt = #Mobpt + strmobinfo(3,killedrid);
+ #MPQUEST+=strmobinfo(3,killedrid);
return;
-
}
000-0,0,0,0 script #mobptsys NPC_HIDDEN,{