Skip to content

[request] Event + Pvp reward

Featured Replies

Hi MaX 8)

im using H5 and i m looking for away to make event`s in the server like tvt ,Dm ,Ctf ,Lms and other event

and put it in 1 Npc to register + put the event reward 

2nd i need to put pvp reward

Use a simple script to registrer the players (like a QuestState). Depending of the event use one or two registration metod (st1 & st2 for example for two teams), and depending of how ends your event, use...

 

Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();

for (L2PcInstance player : pls)

 

...to find all the players registred. Also you must write the "winner conditions" under.

Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();

for (L2PcInstance player : pls)

the events need to have the players in any list, so you can do anything like

for (L2PcInstance player : _team1)

or

for (L2PcInstance player : _team2)

on the function that use each event to end

 

  • 3 weeks later...
  • Author

ok i did not understand any thing cuz im nooby in this thing so i will fix it in othere time

but i need to know how to make pvp reward

like when i pvp with some1 and i kill him i get reward ?

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.