DropItemMap function

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
94
Ok so I am attempting to create a userdie script in the mapquest files, with the idea... that when a person dies... an item drops near them on the map when they die for other people to pick up.. its suppose to be part of a PVP script, my question is whether this is possible to pull off, and exactly how the

DropItemMap function works.. i found an example of the command in an old script, i understand most of it... DropItemMap "Mapname,x-coord-y-coord,range" the stuff after it.. i assume %A9 is the item? and 1 is the quantity however I am not sure what %D9 is.
could someone explain? :)

Code:
"FLD_REWORD1,FLD_REWORN1COUNT,FLD_MAPEXP" @TestSurviveGame_Start_Result_Next

[@TestSurviveGame_Start_Result_Next()]
#ACT
mov A9 %ARG(1)
mov D9 %ARG(2)
Mov D8 %ARG(3)
DropItemMap "E002,40,40,20" %A9 1 %D9
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
Code:
[@_DieScript]
#IF
#ACT
FormatStr "%s,%s,%s,%s" %USERMAP %USERX %USERY 20
DropItemMap "%A9" PVPItem  1  1

Not 100% Sure that will work as I can't check from work without loading into Server. If it doesn't work, the Command is used as follows

DropItemMap "MAP, X, Y, AREA" ITEM, QTY IN PILE, QTY OF DROPS
 
Upvote 0

MasterQ

LOMCN Veteran
Veteran
Loyal Member
Aug 6, 2006
462
0
42
London
Dont suppose theres a way to make this happen only if your killed by another person? low lvl noobs would just abuse this by getting killed by guards...
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
No m8, or at least not directly (That I know of.. )

There is a LogDataSvr that can be run that logs everything that happens on the server. If you could make a program to interact with the log files, and update an SQL table, the players could then interact with that SQL table directly from the game.. its a bit of a long way around, but possible.

I don't run the LogDataSvr as my PC specs are not good enough to run it while the server is running, but anyone with VB (or another language) knowledge could make you one..
 
Upvote 0

Inflikted

LOMCN Veteran
Veteran
Aug 4, 2003
256
7
94
this is suppose to be a userdie mapquest script not a global userdie script :)
but there is an idea i had for a global userdie script. currently people on my server.. gain 1 FP for each level up, i dont no how you do it on your server.. but you can maybe do a FP check.. and see if they have atleast 1 FP.. subtract it if they die and then have the itemdrop.. which in my case is a goldcoin worth 1FP anyways :) so... if a noob has no FP... no coins drop :)
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
215
UK
in Mapquest:

map number [0] 0 [UserDie] * * [MapQuest_Def\User_Die-whatever] [@main]

then in User_Die-whatever]

[@main]
#IF
CheckFame
#ACT
Mov D4 %P9 ;;;P9 being the fame amount
INC D4 1
SetFame %D4
 
Upvote 0