Jump to content

Hadeszeus

Members
  • Content Count

    651
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Hadeszeus

  1. Can I request a script that records the time of death of all MVPs somewhere in DB? Then, this records will prevent MVPs to re-respawn everytime the server restarted or turn-on. Except using @reloadscript. For example: The server started at 9:00AM (server time). Let say one of the MVPs killed at 9:20AM the script will record this time. Then the server shutdown or crashed at 9:25AM. When server restarted let say 9:40AM the script checks the records of all MVPs death time. Since there is one at 9:20AM this MVP will not respawn until the correct time is met. Let say the MVP will respawn again in 2hours. Based on the example the next respawn will happen at 11:20AM regardless the time of server was restarted. This script will prevent the players to kill MVPs on server restart. Anyone please explain if possible via scripting?
  2. The reason why the IF statement didn't work, because serverUpDown fuction is using bool to pass the output OFFLINE/ONLINE. Here's the orginal code: /lib/Flux/Template.php /** * Returns "up" or "down" in a span HTML element with either the class * .up or .down, based on the value of $bool. True returns up, false * returns down. * * @param bool $bool True/false value * @return string Up/down */ public function serverUpDown($bool) { $class = $bool ? 'up' : 'down'; return sprintf('<span class="%s">%s</span>', $class, $bool ? 'Online' : 'Offline'); } So to make it work. Just create a new function for serverUpDown. Something like this // filename of an image that represent that the Server is Online define('ONLINE_IMAGE', 'Online.png'); // filename of an image that represent that the Server is Offline define('OFFLINE_IMAGE', 'Offline.png'); function serverUpDownImage($bool) { $imgDown = THEME_PATH.'images/'.OFFLINE_IMAGE; $imgUp = THEME_PATH.'images/'.ONLINE_IMAGE; $class = $bool?'up':'down'; return sprintf('<span class="%s">%s</span>', $class, $bool?'<img src="'.$imgUp. '"/>':'<img src="'.$imgDown.'"/>'); }
  3. Yes pan. That line was the problem. I was able to fixed mine using SC_ALL? BTW, dunno what is the purpose of this line..
  4. I said I only used text for testing purposes
  5. Guys, I'm currently working on my CP using FLUX. I'm having problem changing the output text OFFLINE/ONLINE in MAP SERVER STATUS. Here's the original code: <table><?php foreach ($serverStatus as $privServerName => $gameServers): ?> <?php foreach ($gameServers as $serverName => $gameServer): ?> <tr> <th class="server"><?php echo htmlspecialchars($serverName) ?></th> <td class="status-login"><?php echo $this->serverUpDown($gameServer['loginServerUp'])?></td> <td class="status-char"><?php echo $this->serverUpDown($gameServer['charServerUp']) ?></td> <td class="status-map"><?php echo $this->serverUpDown($gameServer['mapServerUp']) ?></td> <td class="status-online"><?php echo $gameServer['playersOnline'] ?></td> </tr> <?php endforeach ?></table> Here's my if statement to change the text to image (I used text to echo the return value for testing purposes only.) The problem is even if the server is Offline the status still display green text instead of red <td class="status-login"><?php if($this->serverUpDown($gameServer['loginServerUp']) == "Offline") {echo "red";} else {echo "green";}?></td> Any thoughts? Thanks!
  6. Bro I'm getting this error. Why?
  7. How to covert my itemdb to sql? Please help....
  8. Can someone help me fix this src modification to create a status effect that nullify DISPELL for certain period of time? enumerating the sc_type: srcmapstatus.h: SC_SKILLATKBONUS,+ SC_IGNOREDISPELL, SC_MAX, //Automatically updated max, used in for's to check we are within bounds. srcmapstatus.c: StatusChangeFlagTable[SC_WALKSPEED] |= SCB_SPEED;+ StatusChangeFlagTable[SC_IGNOREDISPELL] |= SC_NONE; Applying the status to block dispell srcmapskill.c: case SA_DISPELL: { int splash; if (flag&1 || (splash = skill->get_splash(skill_id, skill_lv)) < 1) { int i; if( sd && dstsd && !map_flag_vs(sd->bl.m) && (sd->status.party_id == 0 || sd->status.party_id != dstsd->status.party_id) ) { // Outside PvP it should only affect party members and no skill fail message. break; } clif->skill_nodamage(src,bl,skill_id,skill_lv,1); if((dstsd && (dstsd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER) || (tsc && tsc->data[SC_SOULLINK] && tsc->data[SC_SOULLINK]->val2 == SL_ROGUE) //Rogue's spirit defends againt dispel. || rnd()%100 >= 50+10*skill_lv || (tsc && tsc->data[SC_IGNOREDISPELL])) //SC_IGNOREDISPELL { Sample IGNOREDISPELL Script using 501 {Id: 501Inherit: trueScript: <" sc_start SC_IGNOREDISPELL,300000,0; ">} EXPECTED RESULT: When RED POTION consumed. Nullify DISPELL for 3 minutes ACTUAL RESULT: Character turns to black (like stone cursed) and unable to move. Casting DISPELL will cancel abnormal status. Credits to ORIG SOURCE
  9. Salamat sa inyong lahat! Thanks Everyone!
  10. Sir Mumble, thanks for the reply. But what I'm asking was, "Is it possible to add cashpoints to a player in game? If not? Is adding cashpoint directly to db_table is okay/advisable? or any other way like npc/script?
  11. Wala ako mahanap kung pano eh! Meron po ba nito? Command na mag iinsert sa isang character ng Cashpoints or Kafra? Kung wala ano lang ang pwedeng way sa ngayon? Deretcho insert sa db? advisable ba un? Pwede kaya via NPC tytype mo lng yung name nung User ma loloadan na sya ng cash?
  12. How about Gunslinger and other classes? I'm just wondering how to add them on the list. Is it possible to include them on the menu with different array for Job Points?
  13. Yey! Thanks! What about the title when you hover on the tabs? E.g Buff <--- on hover permanent item
  14. Oh My! No words! Thank you Mumbles you're a genius. Im a fan! +1 Respect. @evilpuncker thanks to you for giving the idea.. I really appreciate it.
  15. Sir i hope you have time to do this.. really need this if possible..
  16. What about checking the name of the item equip? instead of checking the card? I tried this but its not working either.. Script: <" if(readparam(bDex) > 72 && getequipname(8) = "of Bigmouth" && getequipname(128) = "of Bigmouth") { bonus bVariableCastrate,-100; } else { bonus bVariableCastrate,-30; } ">
  17. Should probably throw that else in there; currently, you'll get -30 no matter what lol This script work if I have 2 Berze in my inventory + 2 berze compounded on 2 ACCESSORY. But if the 2 Berze is inside the ACCESSORIES without 2 cards in my inventory it doent work. The script only check the BERZE in my inventory not in my equipped items. if(readparam(bDex) > 72 && countitem(4145) > 1) // if dex higher than 150 and card count higher than 1, gives -50 else gives -30 { bonus bVariableCastrate,-100; } else { bonus bVariableCastrate,-30; }
  18. How to modify the CASH SHOP TABS? Or is it possible to edit the default tabs or not? E.G New = Featured Hot = Deals Etc. Etc.
  19. How to write this? I want to check the amount of DEX before 2 Berze take effect. If one berze is equipped no need to check the DEX.
  20. Fixed Price Sir. Its perfect if all shops reduce too. Thank you!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.