• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Start positions

Status
Not open for further replies.

uDev

Illustrious Member
Is it possible to make on new char creation, when that char get in-game it starts on radom location using random.math ?
So example we have 10 locations, now new character will get spawned randomly selected in one of them ?
 

Foereaper

Founder
Yes. Use:

PLAYER_EVENT_ON_FIRST_LOGIN = 30, // (event, player)

A table with the locations, and player:Teleport()
 

uDev

Illustrious Member
Okay, that's what i needed tnx! :) just one small more, any way possible making char on tele in sleep state and dazzed or drunk?
 

slp13at420

Mad Scientist
SetDrunkValue(x)
{ "SetDrunkValue", &LuaPlayer::SetDrunkValue }, // :SetDrunkValue(newDrunkValue) - Sets drunkness value
I have never used that method tho but its under eluna player methods
for dazed I think it can be done as player:CastSpell(x) dunno the actual id for dazed since there are a few listed when I do the search 1604,5101,8672,13496,15571,29703,35955,40714,50259,50411,51372.
 

DarkAngel

Wiki Author
SetDrunkValue(x)

I have never used that method tho but its under eluna player methods
for dazed I think it can be done as player:CastSpell(x) dunno the actual id for dazed since there are a few listed when I do the search 1604,5101,8672,13496,15571,29703,35955,40714,50259,50411,51372.
SetDrunkValue(x) has the same effect as e.g. beer. (I am so mester obvious)
That method is not what you are looking for, uDev - use one of the daze spells.
 

Reloac

BETA Tester
Check the freeze command, I'm sure the visual they use / spell can be added like you want.
 
Status
Not open for further replies.
Top