Scuffle Event 2.1

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
this one ... Paskie sent me the topic link asked me to write so ...

http://rathena.org/board/topic/93022-random-pker/

I finished it...

Download 2.1

scuffle_event_2.1.txt

also needs source modification of -> getmemberaid

this is a twist to last man standing event

every few hours (configurable), this event will randomly select a few players

those players who are quick enough to type '@scuffle' will be able to join the event

then its a last man standing ... the last one who stay in the map gains the prize

the condition to pick the players for the registrations are : ( by default )

- not a vendor

- not in a chatroom

- not inside an event map (nowarp and nowarpto mapflag)

- not a GM

- active in last 30 seconds

- base level above 55

- no same ip

to configure the time, simply change

OnClock0000: // Configure time here ...OnClock0600:OnClock1200:OnClock1800:..

version 1.0

scuffle_event_1.0.txt

this PvP event ... randomly select 2 active players and put them to fight in an empty map

the condition to pick that 2 players are : ( by default )

- not a vendor

- not in a chatroom

- not inside an event map (nowarp and nowarpto mapflag)

- not a GM

- active in last 30 seconds

- base level above 55

so the winner of the duel gain the prize

scuffle_event_2.0.txt

completely rewrite of this script,

now this script become more complex and using registration instead of sending them in straight

scuffle_event_2.1.txt

-- fix a bug that some players might be in the map, should mapwarp them out
 

Attachments

Last edited by a moderator:
nice idea, can't view the file atm so I want to ask
default_tongue.png
will the player be warped to where he was before being recalled? would be nice if it act like this
default_smile.png
maybe add a config setting (warp players to 1: prontera , 2: savepoint, 3: source place (the place where they were before warped to event map))

 
it warp to source place

... wonder why you can't read the script (just 89 lines without comments)

http://upaste.me/r/cec21097384776dc9

and the idea isn't mine ... I only make script accordingly to someone else idea

EDIT: forgot to add noreturn mapflag ... again

 
Last edited by a moderator:
just a suggestion, why not only pick at pvp room? so leveling up and mvp hunting won't pick.

nice! i like this

 
Last edited by a moderator:
Thanks a lot for this!

*edit

i wonder if you could add something that can ask players if they want to join the duel or not? in-case they were busy hunting something etc and then reroll the the next active player that might be interested to join.

 
Last edited by a moderator:
^

Change this:

for ( .@i = 0; .@i < .rewardsize; .@i += 2 ) getitem .reward[.@i], .reward[.@i +1];
to this:

Code:
	    Zeny += 100; // 100z is the prize. change to your likings.
 
Hello There ...

Request: please can you make it this event will not work if woe time or there is a current event....

Please to the owner

 
Is there a way to validate if you have an item in your inventory?

if ( !checkvending() && !checkchatting() && !getmapflag( strcharinfo(3), mf_nowarp ) && !getmapflag( strcharinfo(3), mf_nowarpto ) && !getmapflag( strcharinfo(3), mf_noteleport ) && !getgmlevel() && checkidle() < .idle && BaseLevel >= .level ) { // not vendor, not inside an event map and excluding GMs

imagine is here, but I do not know how to declare it.

-------------

ok i tried these (from wiki)
&& countitem(512) >= 5
and it seems to work >=)

 
Last edited by a moderator:
just a suggestion, why not only pick at pvp room? so leveling up and mvp hunting won't pick.
just add.. && getmapflag( strcharinfo(3), mf_pvp ) && ...in the condition block.

.

.

Request: please can you make it this event will not work if woe time or there is a current event....
shouldn't you configure the OnClock by yourself ?OnTue2000 ... something like this also can

 
Last edited by a moderator:
just a suggestion, why not only pick at pvp room? so leveling up and mvp hunting won't pick.
just add.. && getmapflag( strcharinfo(3), mf_pvp ) && ...in the condition block.

.

.

>Request: please can you make it this event will not work if woe time or there is a current event....
shouldn't you configure the OnClock by yourself ?OnTue2000 ... something like this also can
Hello, AnnieRuru. How to restricted same ip to join this game?
 
Last edited by a moderator:
Back
Top