Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   MAGIC MAGIC AAARRRRGGGGG:grrr: (https://forums.graalonline.com/forums/showthread.php?t=18217)

psi 12-04-2001 02:23 AM

MAGIC MAGIC AAARRRRGGGGG:grrr:
 
HOW DO I GIVE MAGIC AND MAKE ITMES USE UP MAGIC!!!

Falcor 12-04-2001 03:54 AM

Its post like this that detour me after feeling sorry for the people that can't script. uhg...

playermp

is the variable for magic points and you can take away mage points and add them. amd also require them for certain things...

if(weaponfired && playermp >3){
playermp-=3;
<insert cool magical code here>
}

Get the idea?

Falcor 12-04-2001 03:56 AM

Oh and please refrain from using all caps? If you havent noticed. All Caps will not earn you a good reputation. Especuialy on the NPC Board.

btedji 12-04-2001 05:20 AM

you can also use players[index].mp

Falcor 12-04-2001 06:46 AM

yeah but why woudl you wanna edit other peoples mp with a wapon? (you cant i dont think, new protection or somethin, you can only read it)

Aknts 12-05-2001 05:18 AM

Falados is right!

btedji 12-05-2001 05:40 AM

Quote:

Originally posted by Aknts
Falados is right!
:spam: :spam:


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

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