Important Pluton for Experimental Branch

Status
Not open for further replies.

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
43
all config files related to the plugin being used go in the same folder the plugin is in, so if you use HOME.py in HOME folder, then the ini for that would be in folder HOME
Thanks for clarifying.

Would be very grateful if someone could share the set Home plugin, someone said they would a fair few days ago but haven't.

Thanks in advance!
 

coersum

Plugin Developer
Plugin Developer
Oct 9, 2014
77
5
8
47
Parts Unknown
We were talking about tags, probably we will add them, probably not. You can use the DataStore for that, it's not too hard. :)
We can't disable player dmg in plugin yet right?, I didn't see anything like that. I meant setting a Player variable that would remove pvp dmg to that player. then in pluggin we could set cmd.User.SetPvP(false) for this person to play as PVE.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,091
4,767
113
At your house.
github.com
We can't disable player dmg in plugin yet right?, I didn't see anything like that. I meant setting a Player variable that would remove pvp dmg to that player. then in pluggin we could set cmd.User.SetPvP(false) for this person to play as PVE.
Ofc you can do it.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,091
4,767
113
At your house.
github.com
Python:
def On_PlayerAttacked(self, PlayerHurtEvent):
         if PlayerHurtEvent.Attacker.ToPlayer().displayName is not None:
                 PlayerHurtEvent.DamageAmount  = 0
 
  • Like
Reactions: coersum

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Python:
def On_PlayerAttacked(self, PlayerHurtEvent):
         if PlayerHurtEvent.Attacker.ToPlayer().displayName is not None:
                 PlayerHurtEvent.DamageAmount  = 0
I don't think you need .displayName
 

coersum

Plugin Developer
Plugin Developer
Oct 9, 2014
77
5
8
47
Parts Unknown
I don't think you need .displayName
lol I was just programming something like that after Detrax said "Ofc you can do it." Thanks for the example!

I have no clue how I missed on_PlayerAttacked before.... I am baffled.

I know... I did start Python only a couple weeks ago... but I did program before in other languages... I only went by what the hurt/dmg events were returning.. NEVER saw that it was of HurtEvent type with had variables of their own...
 
Last edited:

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Do the config files for moderators and owners not work? I've tried, but it doesn't do anything.
you have to restart the server, it should say in the console when you connect, that "blabla has auth level 1"
or something like that
 

[ETH] p996t2

New Member
Member
Oct 12, 2014
16
0
1
46
Parts Unknown
Just a small noob question from me. To built the package, i use trial version of ms visual studio 2013, can you advice another builder (freeware) ?

Thanks,
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
Another bug... Used Pluton.World.AirDrop() AND Pluton.World.AirDrop(100, 400)
both failed and are under ground all together when called and they wont fly away in sky... I hear and see blinking light in one place! Please look in to it :)

And finally test out the Web request... I sent the example in github !
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Another bug... Used Pluton.World.AirDrop() AND Pluton.World.AirDrop(100, 400)
both failed and are under ground all together when called and they wont fly away in sky... I hear and see blinking light in one place! Please look in to it :)
you don't need "Pluton", just World.AirDrop()
 
Status
Not open for further replies.