Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   question (https://forums.graalonline.com/forums/showthread.php?t=9846)

CrazedMerlin 08-18-2001 06:16 AM

question
 
with a npc server how can you make a npc weapon edit your mp?
because the regular way does not work...

LiquidIce00 08-18-2001 06:42 AM

lolz
u mean ap i hope.
mp just playermp= whatever
playerap u cant edit it with the normal way (u can still make pk beer though)
but it doesnt let u permanently edit ap
im not sure with npc server

CrazedMerlin 08-18-2001 06:59 AM

no mp
it goes up but the npc server makes it go back down

LiquidIce00 08-18-2001 07:22 AM

oh you mean the npc server makes it go down
never knew.
there is prolly a way to edit mp ;\ i understant ap but if mp isnt editable then its basically useless

grim_squeaker_x 08-18-2001 04:52 PM

Quote:

Originally posted by CrazedMerlin
no mp
it goes up but the npc server makes it go back down

Well, there is a way of doing it...
If you have NPC control, add the following to the NPC named Control-NPC:
NPC Code:
if (actionservertakemp) {
with (getplayer(#p(0))) playermp-=strtofloat(#p(1));
}


And then put in the weapon which uses the MP instead of playermp-=mpcost:
NPC Code:
triggeraction 0,0,servertakemp,#a,mpcost;


Which is basically a way of fooling the NPC Server to make it work.

DragonLX2k1 03-28-2002 07:06 AM

Quote:

Originally posted by LiquidIce00
lolz
u mean ap i hope.
mp just playermp= whatever
playerap u cant edit it with the normal way (u can still make pk beer though)
but it doesnt let u permanently edit ap
im not sure with npc server

Does anyone have the pk beer script?


All times are GMT +2. The time now is 08:08 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.