|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 456
|
Hello - I am just wondering, how do I refer to a Playermobile.cs command in another script.
for example: say I make an item, and OnDoubleClick this item must set the players "AcceptGuildInvites" command (Defined in PlayerMobile.cs) to true / false. when I just put: m.AcceptGuildInvites = true; in the case, it tunes me "server.Mobile" does not contain a definition for AcceptGuildInvites, are you missing using directive blah blah... any help ? ta
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Sep 2006
Location: Ukraine
Posts: 883
|
OnDouble click receive Mobile m and like you said AcceptGuildInvites declared in PlayerMobile so you need convert type from Mobile to PlayerMobile
It must seems: Code:
PlayerMobile pm = (PlayerMobile)m; pm.AcceptGuildInvites = true; |
|
|
|
![]() |
| Bookmarks |
| Tags |
| command, playermobile |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|