Mondie Counter

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
Ok firstly, how would I do a mondie mapquest that counts a specific number of mons killed? I.E. If you make a requirement to kill say 200 WhereWolfs, how would they be counted and how would you check how many are left to kill?

Secondly, what way would I go about stopping mobs dropping items if they are poisoned? I've seen this done on Zentaur but not sure how it is done.

Thirdly, does anyone know how to make mobs like ArmouredNuma, WhereWolf etc poison? I've tried making them poison but they don't seem to wanna do it properly.
 

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
1. mondie script adds 1 to a table in sql, each death checks table, when number reached quest complete.

2. dunno

3. use the same race number in monster-tbl as say evil elephant.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
235
UK
I personally would add a column to tbl_character for the kill number.

I would then use readvaluesql and updatevaluesql on mondie.
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
ok just a quick question re mobs that poison, mobs like evilelephant the effect is like a cloud of poison right? I cant remember if there are any that don't have any actual visual effects but still poison mele rather than ranged, as obviously ArmouredNuma and WhereWolf both use mele not ranged attack so an effect like that isn't really needed. I know I could use the spittingspider but thats the same problem as i would have using venomousspiticulus or what ever its called lol, I don't want it to appear as if it is spitting poison or emitting a cloud of poison whilst using mele, would rather it look as a char would using a poison neckie or chb, realistic poison from mele.
 
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
I personally would add a column to tbl_character for the kill number.

I would then use readvaluesql and updatevaluesql on mondie.

How would I get it to check the amount needed? I've tried EQUAL and LARGE as so, but doesn't seem to work.

Code:
#IF
EQUAL D9 10000000
#ACT
goto @BlahBlah

also tried

Code:
#IF
Large D9 10000000
#ACT
goto @BlahBlah
 
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
o.O "D" is not for big Numbers, the Base is :

- D=Digit=255
- N=Numbers=32bit (Global)
- P=Numbers=32bit (local)
- A=AlphaNum. (Global)
- B=AlphaNum. (Local)

Hope it is not false and King or CD has it not change. (is long time ago ^^)
 
Upvote 0

Snailly

Dedicated Member
Dedicated Member
Nov 20, 2008
69
0
53
Liverpool
this is an example from my files

;; Killing Quests
[@Main]
#IF
CHECK [186] 1
#ACT
break

#IF
CHECK [185] 1
#ACT
mov A0 %USERNAME
FormatStr "FLD_CHARACTER='%s'" %A0
ReadValueSql "TBL_KILLINGQUESTS" %A9 "FLD_CHARACTER,FLD_STATUS,FLD_MONSTER,FLD_CURMOBKILL,FLD_TOTALMOBKILL" [@LoadKillingStats1]

#ELSEACT
break


[@LoadKillingStats1()]
#ACT
mov A1 %ARG(1) ; Character
mov A2 %ARG(3) ; Monster Name
mov D1 %ARG(2) ; Status
mov D2 %ARG(4) ; Current Monster Kill Count
mov D3 %ARG(5) ; Total Monster Kill Count
mov A3 "Hen" ; Script Monster Name
goto @mobchecks
break

[@mobchecks]
#IF
EQUAL A2 "%A3" ; Add Monster Name Here
SMALL D2 %D3 ; If Current Kill Count IS LESS than Total Kill Count
#ACT
;------------ Killcounter ---------------

FormatStr "FLD_CHARACTER='%s'" %USERNAME
mov A8 %A9
mov D4 %D2 ;Update Current Kill Count
inc D4 "1"
inc D2 "1"
FormatStr "FLD_CURMOBKILL='%s'" %D4
UPDATEVALUESQL "TBL_KILLINGQUESTS" %A8 %A9
;-----------------------------------------------
eventmsg [private] "Killcount - <$OUTPUT(D4)>/<$OUTPUT(D3)>"

#IF
EQUAL A2 "%A3" ; Add Monster Name Here
ELARGE D2 %D3
#ACT
;------------ Killcounter - reset ---------------

FormatStr "FLD_CHARACTER='%s'" %USERNAME
mov A8 %A9
mov D4 "0"
FormatStr "FLD_CURMOBKILL='%s'" %D4
UPDATEVALUESQL "TBL_KILLINGQUESTS" %A8 %A9
;-----------------------------------------------
SET [185] 0
SET [186] 1
break


#IF
#ACT
break
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

you will need to make a new table in SQL to suit your needs etc and then add it to your mapquest doc

you will also need to make the npc register the character first in your table to activate it so the mob counter works :)
 
Upvote 0