[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to detect player class?  XML
Forum Index -> Druids RPG
Author Message
Legendary_Agent

Killing Spree

Joined: 08/21/2006 02:57:13
Messages: 33
Offline

Hey all, since i am still stuck with druidsrpg200 as the newer versions are not not wanted for public download im changing this one and i need to know whats the exact line of script to detect the player class? as in:

if (player.class="weaponmaster")
{
Artifact.Use=False
}
else
{
Artifact.Use=True
}



what i want to do is to make my own artifacts and make them not possible to be used with a specific class as they run into some problems.

Could anyone give me a hand on this matter please?

Thanks in advance!
[MSN]
Jefe

Godlike
[Avatar]

Joined: 11/05/2008 22:52:53
Messages: 361
Offline

What I would do is make a new "loaded" skill for your weapon master class. It would suck for other classes if the artifact dropped randomly but couldn't be used.


Extend DruidArtifactLoaded but change the (Data.Abilities[x] == class'ClassAdrenalineMaster') to Weaponmaster for your new WM skill. That function can be used to restrict the artifact to WMs only as well, look at the AM artifacts that do similar.

The new DC server:
Legendary_Agent

Killing Spree

Joined: 08/21/2006 02:57:13
Messages: 33
Offline

Jefe wrote:
What I would do is make a new "loaded" skill for your weapon master class. It would suck for other classes if the artifact dropped randomly but couldn't be used.


Extend DruidArtifactLoaded but change the (Data.Abilities[x] == class'ClassAdrenalineMaster') to Weaponmaster for your new WM skill. That function can be used to restrict the artifact to WMs only as well, look at the AM artifacts that do similar. 




that is what i am doing, except im doing it for AM and MM only, WM is op enough without it, and it also causes some lame glitches.

im using the normal retention powerups from WOP, they no longer drop randomly, but they also semm to be glitchy in this way, they dont work very well lol, ill have to think of something else probably.

PS: thx for ur advice.
[MSN]
Jefe

Godlike
[Avatar]

Joined: 11/05/2008 22:52:53
Messages: 361
Offline

Ok, i misunderstood, i thought you wanted it to only be usable by WMs. Still, the same method applies, just put in the classes you want it to be used by.

The new DC server:
Legendary_Agent

Killing Spree

Joined: 08/21/2006 02:57:13
Messages: 33
Offline

Yeah thanks mate ^^
[MSN]
 
Forum Index -> Druids RPG
Go to: