From 1304c5d5dd985820da3e49611a821c2d3cdb8660 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Wed, 7 Mar 2018 01:31:12 -0300 Subject: This introduces the core engine for mob points. Yes, it works for all mobs. Yes, it is far better than how TMW did. No, this is not flexible. Monster Level == Mob Points to get. --- npc/003-1/neko.txt | 9 ++++ npc/functions/mobpoint.txt | 100 ++++++++------------------------------------- npc/scripts.conf | 3 +- 3 files changed, 28 insertions(+), 84 deletions(-) (limited to 'npc') diff --git a/npc/003-1/neko.txt b/npc/003-1/neko.txt index 6742a8391..e85277990 100644 --- a/npc/003-1/neko.txt +++ b/npc/003-1/neko.txt @@ -1,10 +1,19 @@ +// TMW-2 Script // Author: // Saulc +// Description: +// Another shopkeeper 003-1,103,106,0 script Neko NPC_PLAYER,{ +if (getgmlevel()) goto L_Debug; hello; +L_Debug: + if (MPQUEST < 1) mes "Not on MPQUEST"; + mes l("You have: @@ Mob Points", str(Mobpt)); + close; + OnInit: .@npcId = getnpcid(0, "Neko"); //setunitdata(.@npcId, UDT_HEADTOP, 2936); diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index 91d385dc9..113c38157 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -1,91 +1,25 @@ -// script from TMW, change by Crazyfefe +// TMW2 Scripts +// Author: Crazyfefe +// Jesusalva +// Desc: Mob Points for Aidan & Ishi. You will gain MONSTER-LEVEL mob points. function script mobpoint { - if (killedrid < 1002) goto L_Return; + if (MPQUEST < 1) goto L_Return; + //if (killedrid < 1002) goto L_Return; - setarray @points, - 1, //Piou - 10 //Piousse - 1 //Tortuga - 2 //Ratto 1005 - 3 //Croc - 1 //Little Blub - 1 //bub - 1 //topyblub - 1 //crocotree 1010 - 1 //plushrommfield - 1 //frostiana - 1 //pikpik - 1 //croconut - 1 //tipiu 1015 - 1 //tipiou - 1 //mananatress - 1 //crafty - 1 //pumpkin - 1 //cuco 1020 - 1 //pilardummy - 1 //fluffy - 1 //mouboo - 1 //bandt - 1 //butterfly 1025 - 1 //archant - 1 //cavemaggot - 1 //cloverpatch - 1 //duck - 1 //maggot 1030 - 1 //plant - 1 //pumpkin - 1 //silkworm - 1 //cavesnake 1035 - 1 //demonicscythe - 1 //wolvern - 1 //zombie - 1 //bat - 1 //yetyking 1040 - 1 //icedfluffy - 1 //redmushroom - 1 //poisonskikymush - 1 //giantmutatedbat - 10 //warlordskull 1045 - 100 //reddragon - 10 //goldenskull - 100 //smokedragon - 1 //bhopfluffy - 1 //forestdragon 1050 - 1 //darklizard - 1 //demonicgoblin - 1 //halloweenjacko - 1 //witchjacko - 1 //scar 1055 - 1 //alphamouboo - 1 //witchedzombie - 1 //bif - 200 //night dragon - 1 //forestmushroom 1060 - 1 //forain 1061 - 1 //assassin 1062 - 1 //vampirebat - 500 //yety - 1 //bee 1065 - 1 //loghead - 1 //firegoblin - 1 //managhost - 1 //moonshroom - 1 //moggun1070 - 3 //scorpion - 8 //redscorpion - 2 //candorscorpion - 25 //blackscorpion - 2 //manabug 1075 - 50 //saxsoghost - 1 //nightscorpion - 1 //goldenscorpion - ; + Mobpt = Mobpt + strmobinfo(3,killedrid); - if (getq(MPQUEST) == 1) - set Mobpt, Mobpt + @points[killedrid - 1002]; L_Return: set @value, 0; return; -} \ No newline at end of file + +} + +000-0,0,0,0 script #mobptsys NPC_HIDDEN,{ + end; + +OnNPCKillEvent: + callfunc "mobpoint"; + end; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index e95934bb7..3d75acc1f 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -16,6 +16,7 @@ "npc/functions/main.txt", "npc/functions/asleep.txt", "npc/functions/barber.txt", +"npc/functions/bank.txt", "npc/functions/clientversion.txt", "npc/functions/doors.txt", "npc/functions/goodbye.txt", @@ -25,6 +26,7 @@ "npc/functions/inventoryplace.txt", "npc/functions/legiontalk.txt", "npc/functions/marriage.txt", +"npc/functions/mobpoint.txt", "npc/functions/npcmove.txt", "npc/functions/masks.txt", "npc/functions/openbook.txt", @@ -41,7 +43,6 @@ "npc/functions/asklanguage.txt", "npc/functions/game-rules.txt", "npc/functions/riddle.txt", -"npc/functions/bank.txt", "npc/functions/confused-tree-dict.txt", "npc/functions/util.txt", "npc/functions/soul_menhir.txt", -- cgit v1.2.3-60-g2f50