Jump to content

hthuong

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by hthuong

  1. I find this error in my map server consoles [Error]: pc_getzeny: Obtaining negative Zeny (zeny=-987261323, account_id=2000619, char_id=151049). Besides, i find some novice player but have 998,000,000 zeny. I think it is zeny bug. Can somebody help me!! Thank you in advanced.
  2. ah, sorry I checked back again, was not lost after relog but after store the item in equiment, 10p after it save data. i want it save soon
  3. after receiving the item from the mailbox.put into the equipment, after i relog the items received from the mail lost please help me
  4. @darristan: rachel.gat,0,0,0,0 monster Beastman 3014,9,1,1,8 here is one way. but i don't know how to add event on monster dead
  5. I want to spawn monster in town and these monsters don't attack player. How can i do it? Thanks in advance
  6. Where can i find script event such as: OnPCDieEvent, OnPCLoginEvent .... Thanks.
  7. All player can't not use main chat channel unless submit command "@main on" before I want to enable it as default How can i do it? Thanks.
  8. Yeah! I tried getitem with account id and problem is solved!
  9. because I use charid to count the number of monsters killed here is my source I want to award the player by charid through the monster that killed but i don't know how to do I found Getnameditem but that it can only be given 1 item and I do not know what to convert charid char name
  10. I want to give item for character and get character name via charid. How do I do it?
  11. my script: //===== rAthena Script ======================================= //= Goblin Invasion //===== By: ================================================== //= Mysterious //===== Current Version: ===================================== //= 1.6 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= // Goblins spawn randomly in a given town. Once all Goblins are killed // the Goblin Leader spawns. //===== TODO: ================================================ // - Change more coding //===== Additional Comments: ================================= //= v1.0 - First release [Mysterious] //= v1.1 - Fixed Bugs [Mysterious] //= v1.2 - Fixed Sentence structures [Mysterious] //= v1.3 - Added Proper Notes [Mysterious] //= v1.4 - Made it obvious on what players have to change [Mysterious] //= v1.5 - Proper Sentence Structures and Typos fixed [Mysterious] //= v1.6 - Fixed mobs not counting down properly [Mysterious] //============================================================ mellina,123,78,4 script Goblin Invasion 459,{ set .gm,40;//GM Level to access the GM Menu. Default: 40 // GM menu | Game Masters Level 40 or more are allowed to Start and Stop invasions. if (getgroupid()>.gm) { if (.mobs_left) { mes "[invasion]"; mes "An invasion is already in progress! Details:"; mes "Location: " + .Map$; mes "^FF0000"+.mobs_left+"^000000 Goblins left"; mes " "; mes "Would you like to Stop the invasion?"; if(select("- No:- Yes")==1) close; donpcevent "Goblin Invasion::OnTimer1805000"; mes "Invasion stopped"; set .mobs_left,0; announce "The Invasion has been stopped by "+strcharinfo(0),bc_all; close; } mes "[invasion]"; mes "Please customize the Invasion event before starting it."; mes "Note - The Goblin Leader drops x5 of the prize."; Main: next; mes "[invasion]"; switch(select("Item [" + getitemname(.ItemID) + "]:Start Event")) { case 1: mes "Which item would you like the Goblin Leader to drop?"; mes "Please input the item ID:"; input .ItemID; goto Main; case 2: mes "The event is going to begin shortly."; close2; goto OnStart; } //If a player clicks the NPC, the NPC will tell the player how much Mobs are left on the certain map. mes "[invasion]"; mes "Còn "+.mobs_left+" 5 chú Goblins đang long nhong tại "+.Map$[.rand_map]+"!"; close; ///////////////////////// //The actual NPC Script// ///////////////////////// //OnMinute30: OnMinute50: // Change this to your liking (When you want the event to start) OnStart: killmonster .Map$,"Goblin Invasion::OnMyMobDead"; // delete before start killmonster .Map$,"Goblin Invasion::OnSpecialMobDead"; // delete before start set .mobs_left, 1; sleep2 1000; set $@ran, rand(1,5); if ($@ran == 5) set .Map$,"izlude"; if ($@ran == 4) set .Map$,"payon"; if ($@ran == 3) set .Map$,"geffen"; if ($@ran == 2) set .Map$,"morocc"; if ($@ran == 1) set .Map$,"prontera"; sleep2 1000; announce "[ Rune-Midgard Guard ]: Ơ kìa, lũ Goblin đang phá làng phá xóm ở " + .Map$ + "!", bc_all; sleep2 5000; announce "[ Rune-Midgard Guard ]: Mọi người ơi, hãy đuổi bọn choi choi này giúp chúng mình với!!", bc_all; monster .Map$,0,0,"Goblin",1258,250,"Goblin Invasion::OnMyMobDead"; set .mobs_left, 250; startnpctimer; end; OnTimer1800000: // 30 minutes later, kills all the mobs. killmonster .Map$,"Goblin Invasion::OnMyMobDead"; set .mobs_left, 0; OnStop://When the event is stopped by a GM, or all monsters dead. set .mobs_left,0; stopnpctimer; killmonster .Map$,"Goblin Invasion::OnMyMobDead"; killmonster .Map$,"Goblin Invasion::OnSpecialMobDead"; announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all; end; OnMyMobDead: //When a Goblin is killed set .mobs_left, .mobs_left-1; if (.mobs_left==0) { announce "[ Rune-Midgard Guard ]: Golbin Bé Bự đã xuất hiện tại " + .Map$ + "!", bc_all; monster .Map$,0,0,"Goblin Leader",1299,1,"Goblin Invasion::OnSpecialMobDead"; } else { if (.mobs_left > 0) { announce "Còn ["+.mobs_left+"/250] chú Goblins.",bc_map; } } end; OnSpecialMobDead: announce strcharinfo(0)+" đã đá trúng mông Golbin Bé Bự, cả nhà vỗ tay hoan hô nào!", bc_all; getitem .ItemID,10; //Change the [5] to the amount you wish to hand out. donpcevent "Goblin Invasion::OnStop"; } end; }
  12. Some player not kill Goblin Archer. They wait until Goblin Invasion appear and kill it. I want count Goblin Archer has been killed by player. And after Goblin Invasion dead npc will give gift for player depend on Goblin Archer Sorry for my bad english.
×
×
  • Create New...