Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/28/19 in Posts

  1. View File Item Trader - as requested This is a reply from this post : Can trade multiple item with success or fail rates. // < ITEM FOR TRADE >, < AMOUNT >, < ITEM TRADED >, < AMOUNT >, < SUCCESS RATE >.. setarray .@trade, 501, 10, 502, 1, 50, // 10 red potions = 1 orange potion @ 50 % 601, 10, 902, 1, 100, // and so on.. @ 100% 701, 10, 702, 1, 75; // 75% I will fix any old scripts that arent working as of date. Just leave me DM so I can check. I dont attend any modifications unless I am interested to add it myself. I also work for free for the interest of many. If you have any personal request for your own personal work and asking for free fix, i will ignore you right away. Thanks and enjoy! Submitter Mabuhay Submitted 11/10/2019 Category Utilities Video Content Author Mabuhay  
    1 point
  2. View File Automated GvG Event v2 Version 1.0 = stop support UPDATED to 2.0 // Automated GvG Event 2.0 Beta version // Event runs every hour via OnMinute timer. // Feel free to edit as you wish // By : Mabuhay // Free release // Dont remove credit // Updated to v 2.0 /* - Added gepard support and check to every members - More flexible options - Can set cash, members, timer, and winpoints if gm starts the command. New mechanics. - When using @gvgeventjoin, all your members must be around you by 5x5 cell. NOTE: item rewards are only to be set here in script because adding them in the GM option would be quite troublesome for me :D */ // Tested and working except for Gepard function. ( But it must be working without any problem ) Compatibility is your responsibily. Backward compatibility is not supported. Update your trunk to latest for this to work. Enjoy Submitter Mabuhay Submitted 11/06/2019 Category PvP, GvG, WoE, Battleground Video Content Author Mabuhay
    1 point
  3. the clone command return the monster gid so you can just save the gid and check for it like .PlayerOneClone = clone("prontera",155,155,"NpcName::OnEvent",1); .PlayerTwoClone = clone("prontera",145,145,"NpcName::OnEvent",2); end; OnEventOne: if(!unitexists(.PlayerOneClone)){ //player one clone is dead } if(!unitexists(.PlayerTwoClone)){ //player two clone is dead } end; also the event name, you can just use different event name for each clone like clone("prontera",155,155,"NpcName::OnEventOne",1); clone("prontera",145,145,"NpcName::OnEventTwo",2); end; OnEventOne: //player one clone is dead end; OnEventTwo: //player two clone is dead end; here a long example : let's clone everyone in prontera , than we check every time one of the mobs are dead we output a debugmes for the char id of the player (i didn't test it , i just wrote it as an example , i don't know even if it will work but technically it should work) getmapunits(BL_NPC,"prontera",.@AID); for(.@i=0;.@i<getarraysize(.@AID);.@i++){ .@s = getarraysize(.charList); .charList[.@s] = convertpcinfo(.@AID[.@i],CPC_CHAR); .mobList[.@s] = clone("prontera",155,155,"NpcName::OnEvent",.charList[.@s]); } end; OnEvent: for(.@i=0;.@i<getarraysize(.mobList);.@i++){ if(.mobList[.@i] && !unitexists(.mobList[.@i])){ //the monster has been found. //we save it. .@charID = .charList[.@i]; .@mobID = .mobList[.@i]; //we delete it from the array. deletearray .charList[.@i],1; deletearray .mobList[.@i],1; //we break out. break; } } //now we have the here .@charID = the player id , .@mobID = the monster gid debugmes "" + .@charID; debugmes "" + .@mobID;
    1 point
  4. Boa noite, O procedimento ainda é o mesmo, procure na pasta npc/mapflag/nowarpto.txt Espero ter ajudado.
    1 point
  5. this is gepard function for getting unique id " get_unique_id(); " to avoid getting spam. this function is to avoid spam even if you use proxy.
    1 point
  6. he is just asking for get_unique_id (); Haha - script Reward NPC -,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #NPCREWARD > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #NPCREWARD = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,501,10,502,10; end; } here
    1 point
×
×
  • Create New...