Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-27-2011, 12:33 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
HTML Code:
    new GuiBitmapCtrl("iPhonePMWindowHead") {
      position = {32, 16};
      extent = {32, 32};
      
      bitmap = temp.head;
      drawimagerectangle(0, 0, temp.head, 0, 64, 32, 64);
    }
Displays the image as this: (btw temp.head = "head19.png")
Attached Thumbnails
Click image for larger version

Name:	ewwww.png
Views:	641
Size:	19.7 KB
ID:	52641  
__________________
Reply With Quote
  #2  
Old 03-27-2011, 04:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally Posted by Deas_Voice View Post
what about player.setshape()? xO !

from "Server Name Change.. again?" thread-


i'd like that servers didnt lose their servername when they go down instead.
Already done, check the original thread

Quote:
Originally Posted by xAndrewx View Post
HTML Code:
    new GuiBitmapCtrl("iPhonePMWindowHead") {
      position = {32, 16};
      extent = {32, 32};
      
      bitmap = temp.head;
      drawimagerectangle(0, 0, temp.head, 0, 64, 32, 64);
    }
Displays the image as this: (btw temp.head = "head19.png")
Not sure who did that, but it must be:

bitmaprectangle = {0,64,32,32};
Reply With Quote
  #3  
Old 03-28-2011, 08:09 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Requesting flag/function to set the player to invincible so he can't be hurt no matter what. That'd be awesome.
Reply With Quote
  #4  
Old 03-28-2011, 11:49 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Crow View Post
Requesting flag/function to set the player to invincible so he can't be hurt no matter what. That'd be awesome.
Or better yet:


Quote:
Originally Posted by cbk1994 View Post
If I was a scripter on a classic server, I'd rather have some kind of function which is called when the player is hurt that basically requests permission to hurt the player. The function would be called in some standardly-named weapon. If the function/weapon doesn't exist, it would default to this, which replicates default behavior:

PHP Code:
//#CLIENTSIDE
public function getAttackDamage(attackerdamageweapon) {
  if (
player.level.nopkzone) {
    return 
0;
  }
  
  if (
player.guild == attacker.guild && player.guild != "") {
    return 
0;
  }
  
  if (
player.ap == 100 && weapon == "sword") {
    return 
0;
  }
  
  return 
damage;

This would give you much greater flexibility and also allow you to change damages based on different types of hits. Something similar could be done for AP taking on death (serverside).
Function hooking would be really useful.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.